Discussion Forums  >  Uncategorized

Replies: 4    Views: 676

learning2app
Lost but trying
Profile
Posts: 3
Reg: Jan 19, 2012
Milwaukee
30
01/20/12 07:26 PM (12 years ago)

Forced to close app in Android emulator in Eclipse

Trying to run my app in Adroid emulator inside Eclipse I get an error message on emulator telling me it has to force the app to close. The application [name of app shows here] has stopped unexpectedly. Please try again. But it happens every time. I have the logs here: 01-20 20:01:59.479: D/dalvikvm(303): GC freed 960 objects / 467248 bytes in 86ms 01-20 20:01:59.669: D/dalvikvm(303): GC freed 269 objects / 535056 bytes in 91ms 01-20 20:01:59.849: D/dalvikvm(303): GC freed 214 objects / 532968 bytes in 73ms 01-20 20:02:00.039: D/dalvikvm(303): GC freed 200 objects / 497504 bytes in 101ms 01-20 20:02:00.199: D/dalvikvm(303): GC freed 212 objects / 532672 bytes in 69ms 01-20 20:02:00.359: D/dalvikvm(303): GC freed 328 objects / 503616 bytes in 72ms 01-20 20:02:00.530: D/dalvikvm(303): GC freed 212 objects / 532448 bytes in 75ms 01-20 20:02:00.719: D/dalvikvm(303): GC freed 212 objects / 532568 bytes in 78ms 01-20 20:02:00.909: D/dalvikvm(303): GC freed 242 objects / 604560 bytes in 76ms 01-20 20:02:01.100: D/dalvikvm(303): GC freed 281 objects / 605088 bytes in 74ms 01-20 20:02:01.339: D/dalvikvm(303): GC freed 226 objects / 567992 bytes in 68ms 01-20 20:02:01.540: D/dalvikvm(303): GC freed 240 objects / 603496 bytes in 75ms 01-20 20:02:01.730: D/dalvikvm(303): GC freed 254 objects / 605624 bytes in 65ms 01-20 20:02:01.929: D/dalvikvm(303): GC freed 268 objects / 674528 bytes in 69ms 01-20 20:02:02.050: D/dalvikvm(303): newInstance failed: p0 i0 [0 a1 01-20 20:02:02.060: D/AndroidRuntime(303): Shutting down VM 01-20 20:02:02.060: W/dalvikvm(303): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 01-20 20:02:02.060: E/AndroidRuntime(303): Uncaught handler: thread main exiting due to uncaught exception 01-20 20:02:02.071: E/AndroidRuntime(303): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.v1_4.BFDF021DF9BF662324FA1AC4.com/com.v1_4.BFDF021DF9BF662324FA1AC4.com.Act_Home}: java.lang.InstantiationException: com.v1_4.BFDF021DF9BF662324FA1AC4.com.Act_Home 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.os.Handler.dispatchMessage(Handler.java:99) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.os.Looper.loop(Looper.java:123) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.ActivityThread.main(ActivityThread.java:4203) 01-20 20:02:02.071: E/AndroidRuntime(303): at java.lang.reflect.Method.invokeNative(Native Method) 01-20 20:02:02.071: E/AndroidRuntime(303): at java.lang.reflect.Method.invoke(Method.java:521) 01-20 20:02:02.071: E/AndroidRuntime(303): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 01-20 20:02:02.071: E/AndroidRuntime(303): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 01-20 20:02:02.071: E/AndroidRuntime(303): at dalvik.system.NativeStart.main(Native Method) 01-20 20:02:02.071: E/AndroidRuntime(303): Caused by: java.lang.InstantiationException: com.v1_4.BFDF021DF9BF662324FA1AC4.com.Act_Home 01-20 20:02:02.071: E/AndroidRuntime(303): at java.lang.Class.newInstanceImpl(Native Method) 01-20 20:02:02.071: E/AndroidRuntime(303): at java.lang.Class.newInstance(Class.java:1472) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.Instrumentation.newActivity(Instrumentation.java:1097) 01-20 20:02:02.071: E/AndroidRuntime(303): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316) 01-20 20:02:02.071: E/AndroidRuntime(303): ... 11 more 01-20 20:02:02.079: I/dalvikvm(303): threadid=7: reacting to signal 3 01-20 20:02:02.089: I/dalvikvm(303): Wrote stack trace to '/data/anr/traces.txt' Any ideas?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/20/12 07:53 PM (12 years ago)
Is this your first app? Have been able to run this app previously? Can you export the app?
 
learning2app
Lost but trying
Profile
Posts: 3
Reg: Jan 19, 2012
Milwaukee
30
like
01/20/12 08:15 PM (12 years ago)
Yes it is my first. Built it with Buzztouch, and got to this point where I got the right settings and almost got it to run in the Android emulator inside Eclipse, but it shuts down in the simulator. I am trying one more thing before I try an export, but I should be able to export is later. I am curious why you asked about export? should I try the exported file somewhere else? It appears to compile just fine, with a few warnings only in Eclipse, but no errors. Just can's see what I am missing. FYI per the Readme file in the buzztouch instructions this uses Google API 1.6, and the emulator only runs the file if it uses the same setting, but it crashes somehow.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/20/12 08:27 PM (12 years ago)
Try exporting. I'm not a programer so I solve problems with understanding where you at in the process. Not skilled enough to read your log post. Try exporting, it'll help narrow the problems & solutions. http://wp.me/p1ZRa7-2g
 
learning2app
Lost but trying
Profile
Posts: 3
Reg: Jan 19, 2012
Milwaukee
30
like
01/20/12 08:31 PM (12 years ago)
Thanks a lot for your help. I figured it out and now it runs just fine!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.