Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build an Interactive Story App (Retired) Finishing the User Interface Ending the Story

aimensasi
aimensasi
11,343 Points

Cloud not find the resources and drawable ID?

07-05 11:47:21.730 826-826/com.AVION.intreactivestory E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.AVION.intreactivestory, PID: 826 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.AVION.intreactivestory/com.AVION.intreactivestory.UI.StoryActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java:1123) at android.content.res.Resources.getDrawable(Resources.java:698) at com.AVION.intreactivestory.UI.StoryActivity.loadPage(StoryActivity.java:51) at com.AVION.intreactivestory.UI.StoryActivity.onCreate(StoryActivity.java:45) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)             at android.app.ActivityThread.access$800(ActivityThread.java:135)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:136)             at android.app.ActivityThread.main(ActivityThread.java:5017)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)             at dalvik.system.NativeStart.main(Native Method) 07-05 11:47:31.760 846-846/com.AVION.intreactivestory D/dalvikvm﹕ GC_FOR_ALLOC freed 47K, 10% free 3207K/3544K, paused 55ms, total 56ms 07-05 11:47:31.800 846-846/com.AVION.intreactivestory I/dalvikvm-heap﹕ Grow heap (frag case) to 8.560MB for 5400016-byte allocation 07-05 11:47:31.830 846-855/com.AVION.intreactivestory D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 4% free 8480K/8820K, paused 27ms, total 27ms 07-05 11:47:32.960 846-846/com.AVION.intreactivestory D/﹕ HostConnection::get() New Host Connection established 0xb7f0fa60, tid 846 07-05 11:47:33.170 846-846/com.AVION.intreactivestory W/EGL_emulation﹕ eglSurfaceAttrib not implemented 07-05 11:47:33.180 846-846/com.AVION.intreactivestory D/OpenGLRenderer﹕ Enabling debug mode 0 07-05 11:47:40.590 846-846/com.AVION.intreactivestory D/dalvikvm﹕ GC_FOR_ALLOC freed 27K, 4% free 8847K/9164K, paused 49ms, total 49ms 07-05 11:47:40.620 846-846/com.AVION.intreactivestory I/dalvikvm-heap﹕ Grow heap (frag case) to 11.761MB for 2980816-byte allocation 07-05 11:47:40.670 846-855/com.AVION.intreactivestory D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 3% free 11758K/12076K, paused 47ms, total 47ms 07-05 11:47:40.740 846-846/com.AVION.intreactivestory W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000 07-05 11:47:40.740 846-846/com.AVION.intreactivestory D/AndroidRuntime﹕ Shutting down VM 07-05 11:47:40.740 846-846/com.AVION.intreactivestory W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xb1a44ba8) 07-05 11:47:40.770 846-846/com.AVION.intreactivestory E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.AVION.intreactivestory, PID: 846 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.AVION.intreactivestory/com.AVION.intreactivestory.UI.StoryActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.Resources.getValue(Resources.java:1123) at android.content.res.Resources.getDrawable(Resources.java:698) at com.AVION.intreactivestory.UI.StoryActivity.loadPage(StoryActivity.java:51) at com.AVION.intreactivestory.UI.StoryActivity.onCreate(StoryActivity.java:45) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)             at android.app.ActivityThread.access$800(ActivityThread.java:135)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:136)             at android.app.ActivityThread.main(ActivityThread.java:5017)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)             at dalvik.system.NativeStart.main(Native Method) 07-05 11:47:43.990 846-846/com.AVION.intreactivestory I/Process﹕ Sending signal. PID: 846 SIG: 9

1 Answer

Dominic Bryan
Dominic Bryan
14,452 Points

Okay first off, please be careful how you ask questions on the forum, with out sounding too blunt but what the hell is this question? you have just copy and pasted a console response! you have not given any code at where the error may be occurring. I honestly can not work out what you are asking, note I have never seen this bulk of responses before so I don't know how you are getting it or what part of you program is causing it. Try to use inserts or code blocks to past chunks like the one above in, then at least it is scroll-able. Also include some description on whats going on, a little is better than none.

My GUESS (as that is all I can do with a question like this) is your implementation and call on your "id" is wrong, so the console is finding nothing and can not return anything.