Android studio 在虚拟机上安装程序时候报错,Unfortunately,xxx has 5C

03-08 06:56:57.939 3493-3493/com.ndsy.weatherbroadcast E/AndroidRuntime: FATAL EXCEPTION: main

Process: com.ndsy.weatherbroadcast, PID: 3493
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ndsy.weatherbroadcast/com.ndsy.weatherbroadcast.MainActivity}: java.lang.reflect.UndeclaredThrowableException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.reflect.UndeclaredThrowableException

3个回答

你在主线程里做了耗时的操作吧?

主线程里面的模拟运行太耗时

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