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

Adding An Image

I have adding the image and now I am getting an error when running and I have changed the script were you have put on the notes about known errors. Please can you help with this thanks Dean.

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hi Dean, what kind of error are you getting? Paste your error and code in here and we can help you troubleshoot more.

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