本文主要是介绍工具问题——再次手贱,报:java.lang.RuntimeException: Unable to instantiate activity ComponentInfo,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
Project -> Properties ->java build path-> Order & Export 选上Private 然后clean 所有项目
06-13 13:31:52.925: D/AndroidRuntime(15684): Shutting down VM
06-13 13:31:52.925: W/dalvikvm(15684): threadid=1: thread exiting with uncaught exception (group=0x40db5300)
06-13 13:31:52.930: E/AndroidRuntime(15684): FATAL EXCEPTION: main
06-13 13:31:52.930: E/AndroidRuntime(15684): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.viewpagerdemo/com.example.viewpagerdemo.MainActivity}: java.lang.ClassNotFoundException: com.example.viewpagerdemo.MainActivity
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2034)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.ActivityThread.access$700(ActivityThread.java:131)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.os.Handler.dispatchMessage(Handler.java:99)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.os.Looper.loop(Looper.java:137)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.ActivityThread.main(ActivityThread.java:4866)
06-13 13:31:52.930: E/AndroidRuntime(15684): at java.lang.reflect.Method.invokeNative(Native Method)
06-13 13:31:52.930: E/AndroidRuntime(15684): at java.lang.reflect.Method.invoke(Method.java:511)
06-13 13:31:52.930: E/AndroidRuntime(15684): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
06-13 13:31:52.930: E/AndroidRuntime(15684): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
06-13 13:31:52.930: E/AndroidRuntime(15684): at dalvik.system.NativeStart.main(Native Method)
06-13 13:31:52.930: E/AndroidRuntime(15684): Caused by: java.lang.ClassNotFoundException: com.example.viewpagerdemo.MainActivity
06-13 13:31:52.930: E/AndroidRuntime(15684): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
06-13 13:31:52.930: E/AndroidRuntime(15684): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-13 13:31:52.930: E/AndroidRuntime(15684): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
06-13 13:31:52.930: E/AndroidRuntime(15684): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
06-13 13:31:52.930: E/AndroidRuntime(15684): ... 11 more
http://stackoverflow.com/questions/16610190/classnotfoundexception-after-adt-update
http://stackoverflow.com/questions/16610296/android-unable-to-instantiate-activity-class-not-found-exception-after-upgra
这篇关于工具问题——再次手贱,报:java.lang.RuntimeException: Unable to instantiate activity ComponentInfo的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!