Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDK Manager won't start Windows 7 64-bit?

Tags:

I know this problem has been addressed before several times, but rather than comment on an old question I decided to make a new one with (hopefully) updated information.

As the title says, no matter what I do I cannot get the SDK Manager to run. I have tried installing both the 32- and 64-bit versions of jdk1.7.0 but no luck.

Currently I have both the jdk (32-bit) and the sdk installed in the C:\ directory. As many have said I changed the environment variable below to reflect the locations. Namely:

Variable name: PATH
Variable value:

C:\Android\android-sdk\tools;C:\Java\jdk1.7.0\; C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\

(Obviously I only added the first two values)

Somebody out there must have had the same difficulty setting this up who can help me out here. I had no problem installing everything on my 32-bit Win7 machine, but the 64-bit is my main computer and I really need to have the SDK with me if I am going to learn how to use it.

(EDIT: Solved!)

The problem I was having was that a command prompt window would pop up then the SDK Manager would start to load then instantly crash.

Strangely, someone else with a very similar computer to mine just installed with no problems whatsoever. Weird.

I finally added another environment variable:

Variable name: JAVA_HOME

Variable value: C:\Java\jdk1.7.0\

and it worked!

Thanks for all the help everyone. I hope this can help someone else who might have the same problem.

like image 378
thewhistler Avatar asked Oct 05 '11 15:10

thewhistler


People also ask

How do I reinstall SDK?

Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.

How do I open SDK Manager?

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool. When an update is available for a package you already have, a dash appears in the check box next to the package.

How do you check if SDK Manager is installed?

This can be found under the menu TOOLS -> Android -> Android SDK Manager. Bellow is the Visual representation of the Adroid SDK Manager.

How can I open SDK Manager without Android Studio?

You will need to download the Android SDK without Android Studio bundled. Go to Android SDK and navigate to the SDK Tools Only section. Copy the URL for the download that's appropriate for your build machine OS. Unzip and place the contents within your home directory.


2 Answers

Ok, one on Windows 7 64bit machine the JAVA_HOME trick did work: i.e. set JAVA_HOME = your jdk bin directory. Also add the jdk bin directory to your path.

On my other Windows 7 64bit machine I had more problems. I tried downloading a different find_java.bat - it didn't help. I tried setting ANDROID_SWT=lib\x86_64 - that helped a bit.

Eventually I stuck with the JAVA_HOME and path changes, then skipped installing the android sdk, installed the ADT Plugin into eclipse. From there, after you reboot, you should see SDK Manager available in the eclipse Help menu. I ran it from there and it was all smooth sailing.

like image 186
Dean Avatar answered Oct 22 '22 03:10

Dean


I was getting the cmd screen showing up briefly then disappearing, added pointer for Java to the path as it was addressed earlier in one of these posts, it did not solve the problem. Then I installed Java SDK, it did not solve the problem. Then I added the Java_HOME variable but it did not solve the problem.

I started navigating via the directory files where the sdk files are installed on the c: drive, it is called "sdk".

  • I found "andoroid" file under "tools" with the file type Windows Batch File.
  • Clicked on it and it opened the sdk manager.
like image 37
Kais Avatar answered Oct 22 '22 02:10

Kais