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

Android Initialization Failed

So I'm trying to complete the Crystal Ball Project video. I've downloaded and unzipped the Android Development Bundle for Windows 64 bit. The next step was to double click initial_setup, however, when I do it comes back with:

"The system cannot find the path specified.

ERROR: SWT folder " does not exist.

Please set ANDROID_SWT to point to the folder containing swt.jar for your platform."

What exactly should I be doing?

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Can you please post the path where you are trying to install the bundle? Eclipse and Android sometimes have problems with nonstandard paths. Can you try moving the bundle to something like "C:\temp\android_dev_bundle" and see if you can run initial_setup?

We are also switching to Google's new Android bundle going forward. It's almost the exact same as ours and is available at http://developer.android.com/sdk. If you switch to that you should be good for the Crystal Ball project with maybe just a few very slight differences.

I've switched to the Google bundle, and that worked perfectly fine. I'm not sure what it is about the other bundle that isn't working, since I've taken the exact same steps for both bundles.

Here's the path: C:\Android Treehouse Bundle\android_dev_environment\android_dev_environment

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Glad the new one is working! Your old path looks okay unless the spaces in "Android Treehouse Bundle" were somehow causing problems. But stick with the Google bundle and just let me know if you have any questions about anything that's different from our videos.