I installed the Android SDK but I cannot use it because the AVD and SDK Managers do not run. When I try to open either one of them, a command prompt window pops up for about
This is how I got it to work on Windows 8
Add the JAVA_HOME environment variable and set it to your java
install location (i.e. C:\Program Files (x86)\Java\jdk1.6.0_39\bin
)
Next edit C:\Users{YOUR
USERNAME}\AppData\Local\Android\android-sdk\tools\android.bat Find
the set java_exe= call lib\find_java.bat
line and change it to
set java_exe=java.exe
Save the file and it should run
Note if you get an error about the swt location simply hardcode the path. Set it to lib\x86 or lib\x86_64
Hope this helps
I also had same problem not able to open Android SDK manager, but by Deleting the .android folder from the user (C:/Users/[User Name]) directory it works...
Thanks
I just ran into a similar problem as lopsided98 had and tried all the solutions on here also and no results. then I remembered that I had to add an environment variable to locate java before i could get android studio to start in the first place so I just tried adding a new system variable for Android_home
and directed it to my android folder C:\Program Files (x86)\Android
. Just like I had done when setting up java and then it started up with no problems. SDK manager is also up and working now. I hope this helps, if you're still having problems
This was what i had found when setting up the java part and just thought I might give it a try for android too.
On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.
Select Start menu > Computer > System Properties > Advanced System Properties.
Then open Advanced tab > Environment Variables
and add a new system variable JAVA_HOME
that points to your JDK folder, for example
C:\Program Files\Java\jdk1.7.0_21.
If the problem is on Windows machine, then just run the AVD Manager or the SDK Manager as Administrator
I had this issue and the problem turned out to be this:
D:\dev\adt-bundle-windows-x86_64-20130522\sdk>"tools\lib\find_java.exe"
C:\Windows\system32\java.exe
I vaguely recall ages ago having an issue with a program finding Java and copying it to the system32 directory to "resolve" it.
I removed those files and now:
D:\dev\adt-bundle-windows-x86_64-20130522\sdk>"tools\lib\find_java.exe"
C:\Program Files\Java\jre7\bin\java.exe
and SDK/ADK manager run properly now.
There may be an issue with \tools\lib\find_java.bat not successfully determining the location of the java.exe and javaw.exe executables.
The workaround here: http://www.gmansoft.com/android-sdk-manager-find-java-problem/ worked for me. Note that if you "fix" the problem in android.bat other batch files will still be broken.
In case the above link breaks, the workaround is to hardwire the results of find_java.bat to return the actual location of the java executables. e.g. edit it to be something like:
rem Check we have a valid Java.exe in the path. The return code will
rem be 0 if the command worked or 1 if the exec failed (program not found).
rem for /f "delims=" %%a in ('"%~dps0\find_java%arch_ext%.exe" -s') do set java_exe=%%a
set java_exe=c:\program files\Java\jdk1.8.0_25\bin\java.exe
if not defined java_exe goto :CheckFailed
:SearchJavaW
rem Check if we can find a javaw.exe at the same location than java.exe.
rem If that doesn't work, just fall back on the java.exe we just found.
rem for /f "delims=" %%a in ('"%~dps0\find_java%arch_ext%.exe" -s -w') do set javaw_exe=%%a
set javaw_exe=c:\program files\Java\jdk1.8.0_25\bin\javaw.exe
if not exist "%javaw_exe%" set javaw_exe=%java_exe%
goto :EOF