この問題に対処する複数の質問があります..しかし、どれも私のために働いていません..
Jazzy ビュー ページャーとmpAndroidChartLibraryの2 つのライブラリを使用しています 。jazzyViewPager はライブラリ プロジェクトですが、androidChartLibrary はjar ファイルです。
プロジェクトを実行しようとすると、次のエラーが発生します
[2015-03-03 11:27:02 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener;
[2015-03-03 11:27:02 - chart] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener;
プロジェクトを繰り返しクリーンアップし、 Eclipseとシステムを再起動しました..しかし、それでもエラーは残ります
提案によると、私は次のことをしました
- プロジェクト名を右クリック
- ビルド パスの選択 -> ビルド パスの構成
- Java ビルド パスで、[注文とエクスポート] タブに移動します。
- Android プライベート ライブラリのチェックを外す
この後、アプリが実行されます..しかし、次のdalvikvm例外が発生します
Unable to resolve superclass of Lcom/example/chart/MainActivity; (30)
Link of class 'Lcom/example/chart/MainActivity;' failed
threadid=1: thread exiting with uncaught exception (group=0x40e19540)
その後、クラスが見つからないという例外が発生します..
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
{com.example.chart/com.example.chart.MainActivity}:
java.lang.ClassNotFoundException: com.example.chart.MainActivity
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2271)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$600(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1335)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5520)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.example.chart.MainActivity
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1069)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2262)
... 11 more
私のマニフェストは正しいです..これはb4でチャートjarを追加するのに使用されていました..削除すると機能します..