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 a Simple Android App (retired 2014) Pretty Little Things Adding an Image

ERROR, even changing the lines you said!!

Hello Help Please!

05-20 12:49:29.432: E/AndroidRuntime(1273): FATAL EXCEPTION: main 05-20 12:49:29.432: E/AndroidRuntime(1273): Process: com.mrvaldemar.crystalball, PID: 1273 05-20 12:49:29.432: E/AndroidRuntime(1273): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mrvaldemar.crystalball/com.mrvaldemar.crystalball.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.ActivityThread.access$800(ActivityThread.java:135) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.os.Handler.dispatchMessage(Handler.java:102) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.os.Looper.loop(Looper.java:136) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.ActivityThread.main(ActivityThread.java:5017) 05-20 12:49:29.432: E/AndroidRuntime(1273): at java.lang.reflect.Method.invokeNative(Native Method) 05-20 12:49:29.432: E/AndroidRuntime(1273): at java.lang.reflect.Method.invoke(Method.java:515) 05-20 12:49:29.432: E/AndroidRuntime(1273): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 05-20 12:49:29.432: E/AndroidRuntime(1273): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 05-20 12:49:29.432: E/AndroidRuntime(1273): at dalvik.system.NativeStart.main(Native Method) 05-20 12:49:29.432: E/AndroidRuntime(1273): Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:111) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98) 05-20 12:49:29.432: E/AndroidRuntime(1273): at com.mrvaldemar.crystalball.MainActivity.onCreate(MainActivity.java:20) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.Activity.performCreate(Activity.java:5231) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 05-20 12:49:29.432: E/AndroidRuntime(1273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)

1 Answer

Calvin Nix
Calvin Nix
43,828 Points

Did you also remember to edit the Manifest file?

Siddharth Saravanan
Siddharth Saravanan
1,208 Points

Yes Calvin Nix is right you have to edit the Manifest file to get the app to run