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 trialAli Shaltout
994 Pointsmy app not working
every time i run my app it's give me popup window with this message " sorry : the application crystal ball (process com.ali.crystalball) has stopped unexpectedly. please try again "
what can i do now ?
2 Answers
Erin Kabbash
5,210 PointsOn the bottom of Eclipse you will see a tab called "LogCat". Can you copy and past the red messages from there? LogCat should highlight what is causing the app to crash.
Ali Shaltout
994 Points06-27 22:48:28.967: W/dalvikvm(1300): threadid=1: thread exiting with uncaught exception (group=0xb5f414f0) 06-27 22:48:28.976: E/AndroidRuntime(1300): FATAL EXCEPTION: main 06-27 22:48:28.976: E/AndroidRuntime(1300): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ali.crystalball/com.ali.crystalball.MainActivity}: java.lang.ClassCastException: android.widget.TextView 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.os.Handler.dispatchMessage(Handler.java:99) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.os.Looper.loop(Looper.java:130) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.ActivityThread.main(ActivityThread.java:3683) 06-27 22:48:28.976: E/AndroidRuntime(1300): at java.lang.reflect.Method.invokeNative(Native Method) 06-27 22:48:28.976: E/AndroidRuntime(1300): at java.lang.reflect.Method.invoke(Method.java:507) 06-27 22:48:28.976: E/AndroidRuntime(1300): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 06-27 22:48:28.976: E/AndroidRuntime(1300): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 06-27 22:48:28.976: E/AndroidRuntime(1300): at dalvik.system.NativeStart.main(Native Method) 06-27 22:48:28.976: E/AndroidRuntime(1300): Caused by: java.lang.ClassCastException: android.widget.TextView 06-27 22:48:28.976: E/AndroidRuntime(1300): at com.ali.crystalball.MainActivity.onCreate(MainActivity.java:30) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-27 22:48:28.976: E/AndroidRuntime(1300): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 06-27 22:48:28.976: E/AndroidRuntime(1300): ... 11 more
this's LogCat red messages
how can i understand it ?