Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Amir Vedadi
1,700 PointsUnfortunately, Crystal Ball has stopped
Hi, I was just doing the tutorials just fine but with running the app on a real device (Nexus 5). Went fine until this step. Any idea? New to Java and android development so bear with me. LogCat says
06-13 15:29:22.321: I/Process(15093): Sending signal. PID: 15093 SIG: 9
06-13 15:29:37.611: D/AndroidRuntime(15196): Shutting down VM
06-13 15:29:37.611: W/dalvikvm(15196): threadid=1: thread exiting with uncaught exception (group=0x41590ba8)
06-13 15:29:37.611: E/AndroidRuntime(15196): FATAL EXCEPTION: main
06-13 15:29:37.611: E/AndroidRuntime(15196): Process: com.example.crystalball, PID: 15196
06-13 15:29:37.611: E/AndroidRuntime(15196): 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-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.ActivityThread.access$800(ActivityThread.java:135)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.os.Handler.dispatchMessage(Handler.java:102)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.os.Looper.loop(Looper.java:136)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.ActivityThread.main(ActivityThread.java:5001)
06-13 15:29:37.611: E/AndroidRuntime(15196): at java.lang.reflect.Method.invokeNative(Native Method)
06-13 15:29:37.611: E/AndroidRuntime(15196): at java.lang.reflect.Method.invoke(Method.java:515)
06-13 15:29:37.611: E/AndroidRuntime(15196): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
06-13 15:29:37.611: E/AndroidRuntime(15196): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
06-13 15:29:37.611: E/AndroidRuntime(15196): at dalvik.system.NativeStart.main(Native Method)
06-13 15:29:37.611: E/AndroidRuntime(15196): Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:111)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)
06-13 15:29:37.611: E/AndroidRuntime(15196): at com.example.crystalball.MainActivity.onCreate(MainActivity.java:17)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.Activity.performCreate(Activity.java:5231)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
06-13 15:29:37.611: E/AndroidRuntime(15196): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
06-13 15:29:37.611: E/AndroidRuntime(15196): ... 11 more ```
4 Answers

Amir Vedadi
1,700 PointsResolved btw! :)

Pablo Prado
Courses Plus Student 1,741 PointsHow did you resolve it? I am having the issue even with a file downloaded from the tutorial, so it's not an issue with the code.

Amir Vedadi
1,700 PointsHmm, when importing the project from Treehouse, it worked. But if it does't work for you, try the workaround mentioned in their description below. Hope it works out! (A lot of "work" words here)

Pablo Prado
Courses Plus Student 1,741 PointsYep, I had not seen the workaround; but it worked. Thanks!