2012-08-30 31 views
0

我使用CloudApp Java Wrapper的时候,这是我的Android清单:INSTALL_FAILED_MISSING_SHARED_LIBRARY使用自定义库

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.github.cloudapp" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="15" /> 

<application 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 

    <uses-library android:name="com.cloudapp.api" /> 
    <uses-library android:name="com.cloudapp.api.model" /> 
    <uses-library android:name="com.cloudapp.impl" /> 
    <uses-library android:name="com.cloudapp.impl.model" /> 

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

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
</application> 

我不断收到INSTALL_FAILED_MISSING_SHARED_LIBRARY检查logcat的,但在logcat中有什么也没有,我我确定我在清单中正确地声明了库。我究竟做错了什么?软件包名称是否错误?我正在使用here的罐子。

这里也是图书馆的截图:

enter image description here

+0

你是否包含了所有在uses-library标签中提到的库? – nandeesh

+0

@nandeesh我认为是这样,我已经添加了一个截图到我的图书馆的职位。 – orange

回答

3

刚刚从AndroidManifest.xml

<uses-library android:name="com.cloudapp.api" /> 
<uses-library android:name="com.cloudapp.api.model" /> 
<uses-library android:name="com.cloudapp.impl" /> 
<uses-library android:name="com.cloudapp.impl.model" /> 

删除这些行,您只需要在你碰巧使用这些标签使用shared-libraries,这是*.so文件,通常在/libs目录。这些shared-libraries在运行时加载;但是,您的references-libraries是在编译时使用项目构建的。

相关问题