[SOLVED] Unable to instantiate activity ComponentInfo

  ... tutorials on how to use AndEngine.

[SOLVED] Unable to instantiate activity ComponentInfo

Postby chaurasia.dilip » Thu Apr 12, 2012 11:58 am

04-12 12:51:31.866: E/AndroidRuntime(482): FATAL EXCEPTION: main
04-12 12:51:31.866: E/AndroidRuntime(482): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.pearson.lagp.v3/com.pearson.lagp.v3.StartActivity}: java.lang.ClassNotFoundException: com.pearson.lagp.v3.StartActivity in loader dalvik.system.PathClassLoader[/data/app/com.pearson.lagp.v3-1.apk]
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.os.Handler.dispatchMessage(Handler.java:99)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.os.Looper.loop(Looper.java:126)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.ActivityThread.main(ActivityThread.java:3997)
04-12 12:51:31.866: E/AndroidRuntime(482): at java.lang.reflect.Method.invokeNative(Native Method)
04-12 12:51:31.866: E/AndroidRuntime(482): at java.lang.reflect.Method.invoke(Method.java:491)
04-12 12:51:31.866: E/AndroidRuntime(482): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
04-12 12:51:31.866: E/AndroidRuntime(482): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
04-12 12:51:31.866: E/AndroidRuntime(482): at dalvik.system.NativeStart.main(Native Method)
04-12 12:51:31.866: E/AndroidRuntime(482): Caused by: java.lang.ClassNotFoundException: com.pearson.lagp.v3.StartActivity in loader dalvik.system.PathClassLoader[/data/app/com.pearson.lagp.v3-1.apk]
04-12 12:51:31.866: E/AndroidRuntime(482): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
04-12 12:51:31.866: E/AndroidRuntime(482): at java.lang.ClassLoader.loadClass(ClassLoader.java:548)
04-12 12:51:31.866: E/AndroidRuntime(482): at java.lang.ClassLoader.loadClass(ClassLoader.java:508)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.Instrumentation.newActivity(Instrumentation.java:1022)
04-12 12:51:31.866: E/AndroidRuntime(482): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
04-12 12:51:31.866: E/AndroidRuntime(482): ... 11 more

Please tell me what am i doing wrong.
Attachments
TestEngine.rar
(1.49 MiB) Downloaded 154 times
chaurasia.dilip
 
Posts: 1
Joined: Wed Apr 11, 2012 1:22 pm

Re: Unable to instantiate activity ComponentInfo

Postby OzLark » Thu Apr 12, 2012 12:06 pm

Announcements is probably not the right place for this thread....

Anyway, read this thread from here down: tutorials/updated-getting-started-with-andengine-t4858-140.html#p32999
Did this post help you? Feel free to return the gesture by downloading Ninja Bees, creating a level (or more) and sharing it to the Ninja Bees website!

Ninja Bees - Our latest Android game, check it out on Google Play (free) or paid with no ads
OzLark
 
Posts: 1130
Joined: Sun Feb 05, 2012 3:19 am

Re: Unable to instantiate activity ComponentInfo

Postby bwbw723 » Wed Dec 12, 2012 11:55 am

Have you solved this problem yet?
I think you should config java build path of this project.
Select Order and Export section then select the check box before andengine.jar.
Click OK button and rebuild the project.
I have solved this problem on my side.
Hope to help you on this problem.
bwbw723
 
Posts: 3
Joined: Wed Dec 12, 2012 11:50 am

Re: Unable to instantiate activity ComponentInfo

Postby songshijia88888 » Wed Apr 10, 2013 10:46 am

bwbw723 wrote:Have you solved this problem yet?
I think you should config java build path of this project.
Select Order and Export section then select the check box before andengine.jar.
Click OK button and rebuild the project.
I have solved this problem on my side.
Hope to help you on this problem.

thx a lot...your way works!! :star:
songshijia88888
 
Posts: 1
Joined: Wed Apr 10, 2013 10:42 am


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 21 guests