最近在做android开发,最后时候无法启动,有没有大神能帮我分析一下这个日志 我到底错在哪里
07-1802:16:16.239:I/art(1383):Notlate-enabling-Xcheck:jni(alreadyon)07-1802:16:18.059...
07-18 02:16:16.239: I/art(1383): Not late-enabling -Xcheck:jni (already on)
07-18 02:16:18.059: W/System(1383): ClassLoader referenced unknown path: /data/app/com.example.newmusic-2/lib/arm
07-18 02:16:18.210: D/AndroidRuntime(1383): Shutting down VM
07-18 02:16:18.210: D/AndroidRuntime(1383): --------- beginning of crash
07-18 02:16:18.215: E/AndroidRuntime(1383): FATAL EXCEPTION: main
07-18 02:16:18.215: E/AndroidRuntime(1383): Process: com.example.newmusic, PID: 1383
07-18 02:16:18.215: E/AndroidRuntime(1383): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.newmusic/com.example.newmusic.MainActivity}: java.lang.InstantiationException: java.lang.Class<com.example.newmusic.MainActivity> cannot be instantiated
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.-wrap11(ActivityThread.java)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.os.Handler.dispatchMessage(Handler.java:102)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.os.Looper.loop(Looper.java:148)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.main(ActivityThread.java:5417)
07-18 02:16:18.215: E/AndroidRuntime(1383): at java.lang.reflect.Method.invoke(Native Method)
07-18 02:16:18.215: E/AndroidRuntime(1383): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
07-18 02:16:18.215: E/AndroidRuntime(1383): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-18 02:16:18.215: E/AndroidRuntime(1383): Caused by: java.lang.InstantiationException: java.lang.Class<com.example.newmusic.MainActivity> cannot be instantiated
07-18 02:16:18.215: E/AndroidRuntime(1383): at java.lang.Class.newInstance(Native Method)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
07-18 02:16:18.215: E/AndroidRuntime(1383): ... 9 more 展开
07-18 02:16:18.059: W/System(1383): ClassLoader referenced unknown path: /data/app/com.example.newmusic-2/lib/arm
07-18 02:16:18.210: D/AndroidRuntime(1383): Shutting down VM
07-18 02:16:18.210: D/AndroidRuntime(1383): --------- beginning of crash
07-18 02:16:18.215: E/AndroidRuntime(1383): FATAL EXCEPTION: main
07-18 02:16:18.215: E/AndroidRuntime(1383): Process: com.example.newmusic, PID: 1383
07-18 02:16:18.215: E/AndroidRuntime(1383): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.newmusic/com.example.newmusic.MainActivity}: java.lang.InstantiationException: java.lang.Class<com.example.newmusic.MainActivity> cannot be instantiated
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.-wrap11(ActivityThread.java)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.os.Handler.dispatchMessage(Handler.java:102)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.os.Looper.loop(Looper.java:148)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.main(ActivityThread.java:5417)
07-18 02:16:18.215: E/AndroidRuntime(1383): at java.lang.reflect.Method.invoke(Native Method)
07-18 02:16:18.215: E/AndroidRuntime(1383): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
07-18 02:16:18.215: E/AndroidRuntime(1383): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-18 02:16:18.215: E/AndroidRuntime(1383): Caused by: java.lang.InstantiationException: java.lang.Class<com.example.newmusic.MainActivity> cannot be instantiated
07-18 02:16:18.215: E/AndroidRuntime(1383): at java.lang.Class.newInstance(Native Method)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
07-18 02:16:18.215: E/AndroidRuntime(1383): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
07-18 02:16:18.215: E/AndroidRuntime(1383): ... 9 more 展开
3个回答
2016-07-19
展开全部
那些省电软件只是关掉运行的软件来省电。但有很多软件是自动后台启动,关了会自己打开,所以省电王没用,加上省电王要运行,自然更费电了。建议你下个lbe安全大师,获得权限,关闭不需要的软件自动启用。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
MainActivity中有没有在子线程显示UI
更多追问追答
追问
没有哦 这个是必须的步骤吗 刚接触这个
追答
不能在子线程显示UI,是写的demo吗,上MainActiviy这个类的代码
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
楼主解决了吗?我也遇到这个问题了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询