无法启动主要活动,无法实例化

时间:2014-11-13 18:03:38

标签: java android

我忘记了我已经完成的工作,但代码的工作正常。我试图通过在stackoverflow上搜索方法来解决它,但大多数都不适合我。我已经尝试检查所有相关的图书馆"订购和导出"但没有工作,我已经在我的清单中包含了java类。它不能一次又一次地清洗它。

11-14 01:54:59.685: E/AndroidRuntime(3126): FATAL EXCEPTION: main
11-14 01:54:59.685: E/AndroidRuntime(3126): Process: com.fyp.atms, PID: 3126
11-14 01:54:59.685: E/AndroidRuntime(3126): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.fyp.atms/com.fyp.atms.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.fyp.atms.MainActivity" on path: DexPathList[[zip file "/data/app/com.fyp.atms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.fyp.atms-2, /vendor/lib, /system/lib]]
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2124)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2248)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.ActivityThread.access$800(ActivityThread.java:138)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.os.Handler.dispatchMessage(Handler.java:102)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.os.Looper.loop(Looper.java:136)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.ActivityThread.main(ActivityThread.java:5050)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at java.lang.reflect.Method.invokeNative(Native Method)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at java.lang.reflect.Method.invoke(Method.java:515)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:805)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at dalvik.system.NativeStart.main(Native Method)
11-14 01:54:59.685: E/AndroidRuntime(3126): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.fyp.atms.MainActivity" on path: DexPathList[[zip file "/data/app/com.fyp.atms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.fyp.atms-2, /vendor/lib, /system/lib]]
11-14 01:54:59.685: E/AndroidRuntime(3126):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
11-14 01:54:59.685: E/AndroidRuntime(3126):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2115)
11-14 01:54:59.685: E/AndroidRuntime(3126):     ... 11 more
11-14 01:54:59.715: I/Process(3126): Sending signal. PID: 3126 SIG: 9

0 个答案:

没有答案