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

Help with loading

I'm doing the crystal ball project, and whenever I click run it keeps popping up "Unfortunately, crystal ball has stopped" on the emulator.

5 Answers

1) Can you locate in your logcat or console tab what error does it actually generate before it says "Unfortunately, crystal ball has stopped".

2) As a workaround I would suggest get started with Geny Motion for your emulator. Its really simple to set up and has lesser lags as compared to the default emulator by android.

And yes its free! :)

Hope it helps.

Treehouse video tutorials on Geny Motion

The console says "CrystalBall does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml"

I also get: "Unfortunately, crystal ball has stopped".

Try to increase your minSdkVersion target value in the android manifest file and see if this helps

<uses-sdk
    android:minSdkVersion="15"
    android:targetSdkVersion="20" />

I had already gotten around it by adding @String like it asked. After that it ran fine.

Thanks everyone for all the help