INSTALL_FAILED_MISSING_SHARED_LIBRARY without google api

喜夏-厌秋 提交于 2020-08-07 06:18:42

问题


Okay, I've been browsing but all I end up with is the api from google. I'm not using any api from google in my application..

I'm writing an application that uses an the sqlite browser and not any other reference yet. Any idea? I haven't started the application before so it's a very big try out right now.


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="main.abvas"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="21" />

    <uses-permission android:name="com.symbol.emdk.permission.EMDK" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <uses-library android:name="com.symbol.emdk" />

        <activity
            android:name=".MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".OrderDetailsActivity"
            android:label="@string/title_activity_order_details" >
        </activity>
    </application>

</manifest>

回答1:


Your project is requesting a firmware library:

<uses-library android:name="com.symbol.emdk" />

The device or emulator you are testing your app on does not contain this library.

Your choices are:

  1. Remove this library, if you are not actually using it

  2. Only test your app on devices that have this library

  3. Add android:required="false" to the <uses-library> element and detect at runtime if you have access to the library, probably by calling Class.forName() on some Java class that should be in the library



来源:https://stackoverflow.com/questions/27526564/install-failed-missing-shared-library-without-google-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!