Unfortunately xxx has stopped

这是我的logcat:

06-10 16:18:55.964: E/Trace(1442): error opening trace file: No such file or directory (2)
06-10 16:18:56.074: D/AndroidRuntime(1442): Shutting down VM
06-10 16:18:56.074: W/dalvikvm(1442): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
06-10 16:18:56.134: E/AndroidRuntime(1442): FATAL EXCEPTION: main
06-10 16:18:56.134: E/AndroidRuntime(1442): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.fragmenttest/com.example.fragmenttest.FragmentTest}: java.lang.ClassNotFoundException: Didn't find class "com.example.fragmenttest.FragmentTest" on path: /data/app/com.example.fragmenttest-2.apk
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.ActivityThread.access$600(ActivityThread.java:141)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.os.Handler.dispatchMessage(Handler.java:99)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.os.Looper.loop(Looper.java:137)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.ActivityThread.main(ActivityThread.java:5041)
06-10 16:18:56.134: E/AndroidRuntime(1442): at java.lang.reflect.Method.invokeNative(Native Method)
06-10 16:18:56.134: E/AndroidRuntime(1442): at java.lang.reflect.Method.invoke(Method.java:511)
06-10 16:18:56.134: E/AndroidRuntime(1442): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-10 16:18:56.134: E/AndroidRuntime(1442): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-10 16:18:56.134: E/AndroidRuntime(1442): at dalvik.system.NativeStart.main(Native Method)
06-10 16:18:56.134: E/AndroidRuntime(1442): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.fragmenttest.FragmentTest" on path: /data/app/com.example.fragmenttest-2.apk
06-10 16:18:56.134: E/AndroidRuntime(1442): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
06-10 16:18:56.134: E/AndroidRuntime(1442): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-10 16:18:56.134: E/AndroidRuntime(1442): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
06-10 16:18:56.134: E/AndroidRuntime(1442): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
06-10 16:18:56.134: E/AndroidRuntime(1442): ... 11 more
06-10 16:26:38.134: E/Trace(1594): error opening trace file: No such file or directory (2)
06-10 16:26:38.294: D/AndroidRuntime(1594): Shutting down VM
06-10 16:26:38.294: W/dalvikvm(1594): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
06-10 16:26:38.325: E/AndroidRuntime(1594): FATAL EXCEPTION: main
06-10 16:26:38.325: E/AndroidRuntime(1594): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.fragmenttest/com.example.fragmenttest.FragmentTest}: java.lang.ClassNotFoundException: Didn't find class "com.example.fragmenttest.FragmentTest" on path: /data/app/com.example.fragmenttest-1.apk
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.ActivityThread.access$600(ActivityThread.java:141)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.os.Handler.dispatchMessage(Handler.java:99)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.os.Looper.loop(Looper.java:137)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.ActivityThread.main(ActivityThread.java:5041)
06-10 16:26:38.325: E/AndroidRuntime(1594): at java.lang.reflect.Method.invokeNative(Native Method)
06-10 16:26:38.325: E/AndroidRuntime(1594): at java.lang.reflect.Method.invoke(Method.java:511)
06-10 16:26:38.325: E/AndroidRuntime(1594): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-10 16:26:38.325: E/AndroidRuntime(1594): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-10 16:26:38.325: E/AndroidRuntime(1594): at dalvik.system.NativeStart.main(Native Method)
06-10 16:26:38.325: E/AndroidRuntime(1594): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.fragmenttest.FragmentTest" on path: /data/app/com.example.fragmenttest-1.apk
06-10 16:26:38.325: E/AndroidRuntime(1594): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
06-10 16:26:38.325: E/AndroidRuntime(1594): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-10 16:26:38.325: E/AndroidRuntime(1594): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
06-10 16:26:38.325: E/AndroidRuntime(1594): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
06-10 16:26:38.325: E/AndroidRuntime(1594): ... 11 more

1个回答

一、Dialog位置
frameworks/base/services/core/java/com/android/server/am/AppErrorDialog.java
public AppErrorDialog(Context context, ActivityManagerService service, AppErrorResult result, ProcessRecord ap......
答案就在这里:unfortunately XXX has stopped多国语言
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

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