我正在從IntelliP IDEA 11.0.2項目中構建AndroidPlot源代碼和修改的數據注入器。構建目標是Android 3.1 API 12級根源& ClockworkMod(ed)Galaxy Tab 10.1 P7510 16gb WiFi。 logcat的(調試級別)過濾器,此錯誤:IntelliJ失敗[INSTALL_FAILED_MISSING_SHARED_LIBRARY]
03-19 23:05:54.199: ERROR/PackageManager(290): Package Dynamic.XY requires unavailable shared library libs.com.androidplot.xy.XYPlot; failing!
我有androidplot-0.4.4釋放通過Windows資源管理器的.jar側載並添加通過的IntelliJ的右鍵點擊對話框中的庫。我在模塊設置的庫的兩個實例的作用域爲「提供」
我AndroidManifest:
**<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:enabled="true"
android:debuggable="true"
android:process="Dynamic.XY"
android:installLocation="auto"
android:hardwareAccelerated="true"
package="Dynamic.XY">
<uses-sdk android:targetSdkVersion="12"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="true"/>
<permission android:name="android.permission.BLUETOOTH"/> <android:protectionLevel="normal"/>
<uses-permission android:name="android.permission.READ_LOGS"/>
<application android:icon="@drawable/icon" android:label="DynamicXYPlotExample" android:debuggable="true">
<activity android:alwaysRetainTaskState="true"
android:clearTaskOnLaunch="true"
android:enabled="true"
android:excludeFromRecents="false"
android:exported="false"
android:launchMode="standard"
android:name="MyActivity"
android:stateNotNeeded="false"
android:allowTaskReparenting="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<uses-library android:name="libs.com.androidplot.xy.XYPlot" android:required="true"/>
<uses-library android:name="libs.com.androidplot.xy.XYSeries" android:required="true"/>
<uses-library android:name="libs.com.androidplot.xy.XYStepMode" android:required="true"/>
<uses-library android:name="libs.com.androidplot.xy.LineAndPointFormatter" android:required="true"/>
<uses-library android:name="libs.com.androidplot.Plot" android:required="true"/>
<uses-library android:name="libs.com.androidplot.xy.BoundaryMode" android:required="true"/>
<uses-library android:name="android.app.Activity" android:required="true"/>
<uses-library android:name="android.graphics.Color" android:required="true"/>
<uses-library android:name="android.os.Bundle" android:required="true"/>
<uses-library android:name="android.bluetooth.BluetoothAdapter" android:required="true"/>
<uses-library android:name="android.bluetooth.BluetoothDevice" android:required="true"/>
<uses-library android:name="android.bluetooth.BluetoothSocket" android:required="true"/>
<uses-library android:name="android.util.Log" android:required="true"/>
<uses-library android:name="java.io.IOException" android:required="true"/>
<uses-library android:name="java.io.InputStream" android:required="true"/>
<uses-library android:name="java.lang.reflect.InvocationTargetException" android:required="true"/>
<uses-library android:name="java.lang.reflect.Method" android:required="true"/>
<uses-library android:name="java.util.Observable" android:required="true"/>
<uses-library android:name="java.util.Observer" android:required="true"/>
<uses-library android:name="java.text.DecimalFormat" android:required="true"/>
</application>
</manifest>**
您是否有包中的libs.com.androidplot.xy.XYPlo庫? – Axarydax 2012-03-20 18:55:38
是的,我已經嘗試重新加載所有包含的庫,除API之外,是否可能需要一些.jar而不是發行版? – cberg 2012-03-20 19:17:48