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!
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

Jordan Peterson
5,134 PointsMy code won't run
I am learning the android Ribbit track. The only thing I changed was the application name. (I named it TextMe) When I try to run the app it says "TextMe has stopped". This is my logcat:
04-01 16:24:48.397: I/dalvikvm(6960): Could not find method android.database.Cursor.getNotificationUri, referenced from method com.parse.ParseSQLiteCursor.getNotificationUri 04-01 16:24:48.397: W/dalvikvm(6960): VFY: unable to resolve interface method 477: Landroid/database/Cursor;.getNotificationUri ()Landroid/net/Uri; 04-01 16:24:48.405: D/dalvikvm(6960): VFY: replacing opcode 0x72 at 0x0002 04-01 16:24:48.460: D/dalvikvm(6960): GC_CONCURRENT freed 262K, 5% free 7761K/8135K, paused 2ms+3ms 04-01 16:24:48.538: D/AndroidRuntime(6960): Shutting down VM 04-01 16:24:48.538: W/dalvikvm(6960): threadid=1: thread exiting with uncaught exception (group=0x40a9e1f8) 04-01 16:24:48.538: E/AndroidRuntime(6960): FATAL EXCEPTION: main 04-01 16:24:48.538: E/AndroidRuntime(6960): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jordanpeterson.textme/com.jordanpeterson.textme.MainActivity}: java.lang.NullPointerException 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2030) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2055) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.ActivityThread.access$600(ActivityThread.java:127) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1176) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.os.Handler.dispatchMessage(Handler.java:99) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.os.Looper.loop(Looper.java:137) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.ActivityThread.main(ActivityThread.java:4532) 04-01 16:24:48.538: E/AndroidRuntime(6960): at java.lang.reflect.Method.invokeNative(Native Method) 04-01 16:24:48.538: E/AndroidRuntime(6960): at java.lang.reflect.Method.invoke(Method.java:511) 04-01 16:24:48.538: E/AndroidRuntime(6960): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 04-01 16:24:48.538: E/AndroidRuntime(6960): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 04-01 16:24:48.538: E/AndroidRuntime(6960): at dalvik.system.NativeStart.main(Native Method) 04-01 16:24:48.538: E/AndroidRuntime(6960): Caused by: java.lang.NullPointerException 04-01 16:24:48.538: E/AndroidRuntime(6960): at com.jordanpeterson.textme.MainActivity.onCreate(MainActivity.java:59) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.Activity.performCreate(Activity.java:4635) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 04-01 16:24:48.538: E/AndroidRuntime(6960): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1994) 04-01 16:24:48.538: E/AndroidRuntime(6960): ... 11 more 04-01 16:24:48.819: D/dalvikvm(6960): GC_CONCURRENT freed 418K, 7% free 7807K/8327K, paused 2ms+2ms 04-01 16:24:49.233: D/dalvikvm(6960): GC_CONCURRENT freed 370K, 7% free 7875K/8391K, paused 1ms+3ms
1 Answer

Jon Kussmann
Courses Plus Student 7,254 PointsCan you post your AndroidManifest.xml?
Jordan Peterson
5,134 PointsJordan Peterson
5,134 PointsHere is my AndroidMaifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jordanpeterson.textme" android:versionCode="1" android:versionName="1.0" >
</manifest>
Jon Kussmann
Courses Plus Student 7,254 PointsJon Kussmann
Courses Plus Student 7,254 PointsNothing is jumping out to me from there.
Which part of the Ribbit app were you most recently working on? If you can upload your project to Github or similar, I could take a look.