[android] Android SDK Setup under Windows 7 Pro 64 bit

The short version of my issue at hand,

  • Windows 7 Professional x64
  • Java JDK 1.6.0_17 x64
  • Eclipse Galileo w\ADT Plugin installed
  • Android SDKtools r04

Since the Android SDK download now only includes the tools, you have to run the included SDK Manager application (SDK Setup) through which you can download the platforms, additional tools, docs,etc.

Under my current configuration SDK Setup bombs on launch, so, I can't do anything since I do not have a single platform to start writing against...I've read a few places that the fix is "just install the 32 bit JDK and all will be well" that seems surprising and disappointing option for a work around(downloading it now to try).

My question is this, anyone else run into this same issue and how did you get past it? Is there a place I can "download by hand" the components I need that I missed on the Android SDK site?

Odds are pretty good that the 32 bit "fix" will work, but that seems wrong that I'll have to install a secondary version of the same SDK/JRE just to run this tool and to download the actual Android SDK components

Thanks!

UPDATE: Well, the work around that requires you to also install 32 bit java and referencing that as your JAVA_HOME worked, either by calling the SDK setup manually or through eclipse. I'm not particularly happy with that, so I'll leave this one open for the time being in case there are other ways to get this done that people may know about.

UPDATE 2: Not directly related since it is Linux centric, but there are troubleshooting steps if trying to run the SDK/Eclipse under Linux 64bit where they reference the need to be able to run 32 bit, but nothing similar under windows x64

FINAL UPDATE (?) Taking the info Seth's answer gave me, and running the bat manually(once I knew what file SDK Setup was running) the answer for me was simply adding ANDROID_SWT path variable that pointed to a valid location with the x86_64 swt.jar....the android sdk directory had one, seemingly in the right place, but it couldn't find it until I added that to my path.

Thanks All!

This question is related to android eclipse

The answer is


To answer your question about downloading files by hand, you can extract the relevant URLs from the SDK Manager's repository manifest:

https://dl-ssl.google.com/android/repository/repository.xml


My situation:: Win 7 x64 JDK 1.6.23 (x64) running installer_r08-windows to install Android SDK failed to detect JDK

Solution is in http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/


My problem was installing the Android SDK in Eclipse Helios on Windows 7 Enterprise 64bit, I was getting the following error:

Missing requirement: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) requires 'org.eclipse.jdt.junit 0.0.0' but it could not be found

Having followed the advice above to ensure that the JDK was in my PATH variable (it wasn't), installation went smoothly. I guess the error was somewhat spurious (incidentally if you're looking for the JARs that correspond to that class, they were in my profile rather than the Eclipse installation directory)

So, check that PATH variable!


When it says JDK not found, just press ‘back’ button and then press again ‘next’ button..

I got this from the bottom of this post: http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/


You can enable the Android SDK installer to run on Windows x64 with JDK x64 installed, by exporting HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit registry key, adding Wow6432Node to all registry keys in the exported file and reimporting it back (should show in regedit as HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit as well).

Note I have both x64 and x86 JRE installed. If you have only x64 JRE, you might have to export the whole HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft registry key and reimport it under Wow6432Node. Although, I believe that the Android SDK installer just checks the JDK registry key.


The following solution was implemented because recently our IDE stopped compiling and building [refresh or clean] on the standard Eclipse IDE for Java Developers version. We kept receiving the error "Your project contains error(s), please fix it before running it." We reviewed all errors, cleaned over and over, rebuilt and even created a new workspace and imported the files however nothing worked. Our product manager Johnpaul, found the error with in the compiled build path and even though it was a manual fix it would come back on the next refresh or rebuild so he recommended we back-up our work-space and do a complete re-install of the developers environment.

We made the switch as a recommendation we found from: http://knol.google.com/k/fred-grott/which-eclipse-package-for-android/166jfml0mowlh/18#report-comment-166jfml0mowlh.7wc65w

We now use the Eclipse IDE [Indigo]for Java and Report Developers Windows 64 Bit without a problem.

After the IDE broke we downloaded:

  • Java Developer Environment with jdk-6u26-windows-x64
  • Eclipse Indigo IDE for Java and Report Developers Windows 64 Bit
  • Android SDK Tools installer_r13-windows

We then:

  • Disconnected from the internet
  • Disabled all Anti-virus programs
  • Disabled our Firewalls

Next we:

  • Uninstalled our SDK via the Eclipse IDE line by line,
  • Updated [installed] our Java Developer Environment with jdk-6u26-windows-x64
  • Unpacked and over wrote Eclipse with the new Indigo "Eclipse IDE for Java and Report Developers"

Windows 64 Bit

  • List item
  • Turned our anti-virus back on and connected to the internet
  • Reinstalled Android SDK Tools installer_r13-windows

We kept all of the default preferences and now everything is working perfectly again. Actually better as the rewrite also solved a few problems with our app not working on some devices. No idea as to why but we aren't complaining. Hope this helps as it is not a true install however a reinstall for Fall 2011 in a Windows 7 64 bit environment.


I managed to run the SDK Setup by adding the location of the Java JDK to the system path. so far so good.


I initially had this problem and I believe it was because I did not have the 64 bit version of Eclipse.


I tried this registry change with no success (though many others have said it works) http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/

I download the .zip version and used SDK Manager.exe in the end.


This blog shows how to update the registry so the Android SDK can find your Java SDK on a 64-bit machine.

http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/


Windows 7 isn't a supported platform as far as I know. I use the SDK on 64-bit Ubuntu 9.10 and it works fine, though I did have to install the ia32libs or libcurses bombed every time. That was Eclipse related.

The SDK sys reqs makes it clear whatever platform you run, you must be able to run 32-bit code.


just press the back button and then next button...jdk found :D


If SDK Setup.exe fails, please try to open a command-prompt and run "tools\android.bat" manually. That's all what SDK Setup does, however the current version has a bug in that it doesn't display errors that the batch might output:

 > cd <your-sdk>\tools
 > android.bat

That way you may see a more useful error message.

You must have a java.exe on your %PATH%.


You can just push back and push next again, and it installs OK.