虚拟机上显示Unfortunately,xxx has stop,大佬怎么解决

图片说明
LogCat显示11-07 02:25:35.072: E/AndroidRuntime(2562): FATAL EXCEPTION: main
11-07 02:25:35.072: E/AndroidRuntime(2562): Process: com.example.mycamera, PID: 2562
11-07 02:25:35.072: E/AndroidRuntime(2562): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.mycamera/com.example.mycamera.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.mycamera.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.mycamera-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.mycamera-1/lib/x86_64, /vendor/lib64, /system/lib64]]
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.ActivityThread.-wrap11(ActivityThread.java)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.os.Handler.dispatchMessage(Handler.java:102)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.os.Looper.loop(Looper.java:148)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.ActivityThread.main(ActivityThread.java:5417)
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.reflect.Method.invoke(Native Method)
11-07 02:25:35.072: E/AndroidRuntime(2562): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-07 02:25:35.072: E/AndroidRuntime(2562): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-07 02:25:35.072: E/AndroidRuntime(2562): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.mycamera.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.mycamera-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.mycamera-1/lib/x86_64, /vendor/lib64, /system/lib64]]
11-07 02:25:35.072: E/AndroidRuntime(2562): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
11-07 02:25:35.072: E/AndroidRuntime(2562): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
11-07 02:25:35.072: E/AndroidRuntime(2562): ... 9 more
11-07 02:25:35.072: E/AndroidRuntime(2562): Suppressed: java.lang.ClassNotFoundException: com.example.mycamera.MainActivity
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.Class.classForName(Native Method)
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
11-07 02:25:35.072: E/AndroidRuntime(2562): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
11-07 02:25:35.072: E/AndroidRuntime(2562): ... 12 more
11-07 02:25:35.072: E/AndroidRuntime(2562): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问