嗨,我对已经制作的应用程序进行了一些更改...现在启动后它立即失败..
这是日志条目的详细信息:
08-21 06:01:58.726: D/AndroidRuntime(782): Shutting down VM
08-21 06:01:58.756: W/dalvikvm(782): threadid=1: thread exiting with uncaught exception (group=0x414c4700)
08-21 06:01:58.796: E/AndroidRuntime(782): FATAL EXCEPTION: main
08-21 06:01:58.796: E/AndroidRuntime(782): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.NUGA_HealthCareActivity_Intro}: java.lang.ClassNotFoundException: Didn't find class "helog.diwesh.NugaBest.NUGA_HealthCareActivity_Intro" on path: DexPathList[[zip file "/data/app/hellog.diwesh.NugaBest-2.apk"],nativeLibraryDirectories=[/data/app-lib/hellog.diwesh.NugaBest-2, /system/lib]]
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.ActivityThread.access$600(ActivityThread.java:141)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.os.Handler.dispatchMessage(Handler.java:99)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.os.Looper.loop(Looper.java:137)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.ActivityThread.main(ActivityThread.java:5103)
08-21 06:01:58.796: E/AndroidRuntime(782): at java.lang.reflect.Method.invokeNative(Native Method)
08-21 06:01:58.796: E/AndroidRuntime(782): at java.lang.reflect.Method.invoke(Method.java:525)
08-21 06:01:58.796: E/AndroidRuntime(782): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
08-21 06:01:58.796: E/AndroidRuntime(782): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-21 06:01:58.796: E/AndroidRuntime(782): at dalvik.system.NativeStart.main(Native Method)
08-21 06:01:58.796: E/AndroidRuntime(782): Caused by: java.lang.ClassNotFoundException: Didn't find class "helog.diwesh.NugaBest.NUGA_HealthCareActivity_Intro" on path: DexPathList[[zip file "/data/app/hellog.diwesh.NugaBest-2.apk"],nativeLibraryDirectories=[/data/app-lib/hellog.diwesh.NugaBest-2, /system/lib]]
08-21 06:01:58.796: E/AndroidRuntime(782): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
08-21 06:01:58.796: E/AndroidRuntime(782): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
08-21 06:01:58.796: E/AndroidRuntime(782): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
08-21 06:01:58.796: E/AndroidRuntime(782): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
08-21 06:01:58.796: E/AndroidRuntime(782): ... 11 more
08-21 06:02:36.656: I/Process(782): Sending signal. PID: 782 SIG: 9
最佳答案
如果您使用Eclipse进行开发,请转到Java构建路径/订单导出,然后将所有特定的库放在第一位。
这样可以解决此问题。