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


Having problems with Eclipse and the Crystal Ball Project.

Hi. I'm just starting the track for Android and Ive been following the Videos and the Instructions to install eclipse to the letter. But I've been having serious problems with running the application when its time to test it out.

Instead of seeing 'The answer is yes' I just get the lock screen with the android gui instead.

Can anyone seriously help me with this? It doesn't help me learn how to dev android apps if i cant even debug or run them.

8 Answers

Let's try a couple of things first.

  1. Restart Eclipse
  2. Exit your Android emulator and start a new emulator
  3. Try to run your application

Let me know what happens after that.

Ive run this problem by tech support and they suggested GenyMotion to replace the existing android emulator.

go to genymotion.com and follow the installation instructions. Ive done this and Ive gotten better progress with my debugging. This doesn't mean the problem is fixed, but its worth switching.

Are you having trouble getting past the lock screen? Use your mouse to unlock the emulator (just like you'd unlock a phone with your finger) and the app should load.

No thats not it. I can get past the lock screen no problem But once I'm past that, I'm directly in the android gui. and not in my mainActivity screen. The logs throw errors that say the file was unable to load.

I've gone so far as to set up a new project and run it from there. Ive done the steps mentioned above several times. Absolutely nothing. I'm starting to think that it could be the software bundle or something related to my own os.

Does anyone know, or have figured out, a solution to this? I am having exactly the same problem. In my Console box this is what I get when I am trying to run the Crystal Ball app:

[2014-01-13 12:32:29 - Crystal Ball] ------------------------------ [2014-01-13 12:32:29 - Crystal Ball] Android Launch! [2014-01-13 12:32:29 - Crystal Ball] adb is running normally. [2014-01-13 12:32:29 - Crystal Ball] Performing com.example.crystal.ball.MainActivity activity launch [2014-01-13 12:32:29 - Crystal Ball] Automatic Target Mode: launching new emulator with compatible AVD 'Android41' [2014-01-13 12:32:29 - Crystal Ball] Launching a new emulator with Virtual Device 'Android41' [2014-01-13 12:32:32 - Emulator] emulator: emulator window was out of view and was recentered [2014-01-13 12:32:32 - Emulator] [2014-01-13 12:32:32 - Crystal Ball] New emulator found: emulator-5554 [2014-01-13 12:32:32 - Crystal Ball] Waiting for HOME ('android.process.acore') to be launched... [2014-01-13 12:37:59 - Crystal Ball] HOME is up on device 'emulator-5554' [2014-01-13 12:37:59 - Crystal Ball] Uploading Crystal Ball.apk onto device 'emulator-5554' [2014-01-13 12:38:00 - Crystal Ball] Installing Crystal Ball.apk... [2014-01-13 12:40:13 - Crystal Ball] Failed to install Crystal Ball.apk on device 'emulator-5554! [2014-01-13 12:40:13 - Crystal Ball] (null) [2014-01-13 12:40:14 - Crystal Ball] Launch canceled!

Then I get a lock screen of an android phone. When I unlock it, I get this screen:

"Make yourself at home "You can put your favorite apps here. "To see all your apps, touch the circle."

With the OK box in the bottom right hand corner.

Any ideas on how to fix this?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

I'm sorry, there isn't a good answer for this. :-/ Besides restarting, cleaning the project, etc., I'd recommend Genymotion like Christopher has mentioned. My workshop on Genymotion will be ready tomorrow.

You could also try deleting your current emulator and creating a new one. Perhaps something is corrupted with your current one. If you need help creating an emulator, check out the instructions at the 5:10 mark of this Quick Tip video.

I can confirm that Genymotion does work. I can debug the projects safely with it now.