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 trialShane Desouza
3,523 PointsAdding an Image
For some reason, my app won't start on my Galaxy S3 testing phone, it always says: "Unfortunately, Crystal Ball has stopped working". I followed all the instructions, but it won't start.
1 Answer
Ronny Kibet
47,409 PointsCan you post the logcat error code?
Shane Desouza
3,523 PointsShane Desouza
3,523 PointsFor some reason, I can't figure out how to post the logcat error code, so I'll just type it in:
06-22 14:03:15.590: D/dalvikvm(30999): Late-enabling CheckJNI
06-22 14:03:16.280: W/ActivityThread(30999): Application com.example.crystalball can be debugged on port 8100...
06-22 14:03:16.535: D/AndroidRuntime(30999): Shutting down VM
06-22 14:03:16.535: W/dalvikvm(30999): threadid=1: thread exiting with uncaught exception (group=0x41cc8700)
06-22 14:03:16.560: E/AndroidRuntime(30999): FATAL EXCEPTION: main
06-22 14:03:16.560: E/AndroidRuntime(30999): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.crystalball/com.example.crystalball.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.app.ActivityThread.access$700(ActivityThread.java:159)
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.os.Handler.dispatchMessage(Handler.java:99)
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.os.Looper.loop(Looper.java:176)
06-22 14:03:16.560: E/AndroidRuntime(30999): at android.app.ActivityThread.main(ActivityThread.java:5419)
That was all I could get out of the LogCat before it started to delete the messages. Hope it was needed.