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

Windows 32-Bit Android Development Bundle initial_setup error

Source: http://teamtreehouse.com/library/android-development/build-an-android-crystal-ball-app/getting-started/android-setup-and-the-crystal-ball-project

CMD Prompt Text

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>REM S et the Android SDK path in Eclipse. Must be the absolute;

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>REM a relative path does not work with the AVD Manager.

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>cd 1>temp.txt 2>&1

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>set / p sdk_path= 0<temp.txt

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>del t emp.txt

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>set s dk_path=C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environme nt\android-sdk-windows

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>set s dk_path=C:\Treehouse\android_dev_environment_windows_32bit\android_dev_enviro nment\android-sdk-windows

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>set s dk_path=C:\Treehouse\android_dev_environment_windows_32bit\android_dev_envir onment\android-sdk-windows

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>echo ôSetting Android SDK path in Eclipse...ö ôSetting Android SDK path in Eclipse...ö

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>echo com.android.ide.eclipse.adt.sdk=C:\Treehouse\android_dev_environment_windows_ 32bit\android_dev_environment\android-sdk-windows 1>>.\workspace.metadata.pl ugins\org.eclipse.core.runtime.settings\com.android.ide.eclipse.adt.prefs

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>echo ôAndroid SDK path set.ö ôAndroid SDK path set.ö

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>REM C reate a new AVD

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>echo ôCreating a new AVD...ö ôCreating a new AVD...ö

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>echo no | .\android-sdk-windows\tools\android create avd -n Android41 -t 1 --force

This version of C:\Treehouse\android_dev_environment_windows_32bit\android_dev_e nvironment\Java\jdk1.6.0_35\bin\java.exe is not compatible with the version of W indows you're running. Check your computer's system information to see whether y ou need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher. Invalid path The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. 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 platfo rm.

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>echo ôAVD created.ö ôAVD created.ö

C:\Treehouse\android_dev_environment_windows_32bit\android_dev_environment>pause

Press any key to continue . . .

I've downloaded the correct bundle, and have been running a 32-bit platform on this machine around 4 years now... I have no pending important windows updates. I tried moving the extraction point to a folder on my desktop, and right under C:/. Please help!

15 Answers

@Mariya - Ben, the Android teacher recently posted this, regarding how to troubleshoot these issues

Change the path to c:\users\%username%

Is that a same problem? Eclipse didn't launch emulator and give an answer

[2013-02-18 10:45:18 - Emulator] PANIC: Could not open AVD config file: C:\Users\???°?€?°.android\avd\Android41.avd/config.ini

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Thanks for posting the link, @James! This issue is becoming really common, which makes me think some kind of update was done that I need to account for in the bundle. I'll be taking a look at this soon to hopefully fix and post a new bundle to avoid this trouble.

I have also been experiencing the same problem.

@Kirk - Ben, the Android teacher recently posted this, regarding how to troubleshoot these issues

Take at a look those instructions and let us know in this thread if you are still having issues.

@James, I downloaded the SDK from Google, everything is working fine now.

Thanks.

@Kirk - Glad to hear it :smile:

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hey all - quick update. I've been unable to reproduce this issue yet to troubleshoot it. For those of you who've posted, and anyone else who finds this thread, can you let me know which version of Windows you're running? 8? 7? Vista? 95?

Vista throws a wobbly for me upon trying to open Eclipse for the first time - tells me to check if I've got 32 or 64 bit. I'm 32 bit. So, I downloaded the newest version of Eclipse, which does open but there's no Android option in the wizard. Off for a beer at this stage. :D

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Hi Keith, sorry you're having trouble! I want to refresh this bundle and project before too long, but in the mean time, try using the bundle from the Android developer site: http://developer.android.com/sdk. It's basically the same thing and you can follow along with a few minor differences.

No worries, Ben. The Android bundle is up and running. The device emulator takes forever to boot up though. New computer shortly, maxed out with RAM, methinks.

vista

@Ben, I am running windows 7 32bit. After installing the dev tools from Google everything worked fine.

Thanks.

Hi,

I had same problem (running windows vista pro).

My solution was to download newer (and maybe correct) version of java jdk and changed java directory variable in .\android-sdk-windows\tools\lib\find_java.bat (jdk1.6.0_35 -> jdk1.6.0_45)

Next had problem with eclipse - eclipse.exe gave "error executing program". so I downloaded newer version and it works .. BUT now I should configure eclipse somehow because there isn't android projects and I think I'll pass this .. easier to download working bundles

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

@Kalle, if you want a quick overview of setting up everything manually, check out this Getting Started Quick Tip. Otherwise, hopefully one of the bundles from http://developer.android.com/sdk will work for you. They are nearly identical to our Treehouse bundles.

Using windows 7 and having same issue.

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Enes Kabacaoglu , thanks for the info. Windows 7 definitely seems problematic. I need to make time to research and fix this issue. In the mean time, please follow this link originally posted above by James Barnett on how to work around this using a bundle from the Android developer site.