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 trialBlake Mead
78 PointsLong list of errors on starting the app
I got to just about the end of the video, setup the crystal ball app and stuff, but upon attempting to run it it screamed and died. (no, there wasn't an audio thing, it's just an odd phrase meaning it crashed while sending errors to the log.) Eclipse and the Emulator work fine, but the crystal ball app seems to have some issues. I have some logs from LogCat, but naturally, I, being almost entirely new to this form of programming, can't read it well enough to tell what the problem is.
I checked the markdown cheat sheet for some easy way to condense this log file's text, but I didn't see any.
06-27 14:03:37.600: D/dalvikvm(975): Not late-enabling CheckJNI (already on) 06-27 14:03:39.480: W/dalvikvm(975): VFY: unable to resolve static field 1559 (ActionBarWindow) in Landroid/support/v7/appcompat/R$styleable; 06-27 14:03:39.480: D/dalvikvm(975): VFY: replacing opcode 0x62 at 0x0004 06-27 14:03:39.490: D/AndroidRuntime(975): Shutting down VM 06-27 14:03:39.490: W/dalvikvm(975): threadid=1: thread exiting with uncaught exception (group=0xb2af3ba8) 06-27 14:03:39.500: E/AndroidRuntime(975): FATAL EXCEPTION: main 06-27 14:03:39.500: E/AndroidRuntime(975): Process: com.example.crystalball, PID: 975 06-27 14:03:39.500: E/AndroidRuntime(975): java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable 06-27 14:03:39.500: E/AndroidRuntime(975): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:107) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98) 06-27 14:03:39.500: E/AndroidRuntime(975): at com.example.crystalball.MainActivity.onCreate(MainActivity.java:18) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.Activity.performCreate(Activity.java:5231) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.ActivityThread.access$800(ActivityThread.java:135) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.os.Handler.dispatchMessage(Handler.java:102) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.os.Looper.loop(Looper.java:136) 06-27 14:03:39.500: E/AndroidRuntime(975): at android.app.ActivityThread.main(ActivityThread.java:5017) 06-27 14:03:39.500: E/AndroidRuntime(975): at java.lang.reflect.Method.invokeNative(Native Method) 06-27 14:03:39.500: E/AndroidRuntime(975): at java.lang.reflect.Method.invoke(Method.java:515) 06-27 14:03:39.500: E/AndroidRuntime(975): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 06-27 14:03:39.500: E/AndroidRuntime(975): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 06-27 14:03:39.500: E/AndroidRuntime(975): at dalvik.system.NativeStart.main(Native Method)
3 Answers
jitan
6,241 PointsI see. Does the emulator crash? Try running Project > Clean and then rebuild and run it.
I believe this part is the most relevant in your logcat (I could be wrong, I'm also new to this stuff):
14:03:39.480: W/dalvikvm(975): VFY: unable to resolve static field 1559 (ActionBarWindow) in Landroid/support/v7/appcompat/R$styleable; 06-27
14:03:39.480: D/dalvikvm(975): VFY: replacing opcode 0x62 at 0x0004 06-27 14:03:39.490: D/AndroidRuntime(975): Shutting down VM 06-27
14:03:39.490: W/dalvikvm(975): threadid=1: thread exiting with uncaught exception (group=0xb2af3ba8) 06-27 14:03:39.500: E/AndroidRuntime(975): FATAL EXCEPTION: main 06-27
14:03:39.500: E/AndroidRuntime(975): Process: com.example.crystalball, PID: 975 06-27
14:03:39.500: E/AndroidRuntime(975): java.lang.NoClassDefFoundError:
Here is a post that might be of help: http://stackoverflow.com/questions/22472675/my-first-app-has-stopped-working-error
jitan
6,241 PointsI think you should paste your code as well.
Blake Mead
78 PointsI don't even know where to get that.
jitan
6,241 PointsI mean the source code from your .java files. Did you edit them yourself or download the project?
Blake Mead
78 PointsI didn't edit anything the video didn't tell me to, and there wasn't a project download either. I never touched the source code, nor would I know anything about it.