SDK manager does not find java

In case any of you still couldn't find solution. Do this. It worked for me. In your android SDK chagne tools/android.bat and tools/lib/find_java.bat as

(find_java.bat)

for /f "delims=" %%a in ('"%~dps0\find_java.exe" -s') do set java_exe=%%a into

set java_exe=C:\PROGRA~1\Java\JDK17~1.0_4\bin\java.exe and

for /f "delims=" %%a in ('"%~dps0\find_java.exe" -s -w') do set javaw_exe=%%a into

set javaw_exe=C:\PROGRA~1\Java\JDK17~1.0_4\bin\javaw.exe

(android.bat)

for /f "delims=" %%a in ('"%java_exe%" -jar archquery.jar') do set swt_path=lib\%%a into

set swt_path=lib\x86 (my system is 32 bit so i put x86 if your system is 64 then you should put \x86_64)

hope it will work for you too.


Maybe this help? I removed the .android folder under C:\Users\\ and it works. Android installation/SDK Manager issues


I Had the same problem, what happened in my machine is that somehow the xcopy was not beeing recognized. I solved the issue adding the xcopy path in the PATH enviroment variable. In my machine the xcopy.exe is located in windows\system32 folder, resulting in this (i have sdk 8, change to whatever you using):

PATH = C:\Program Files\Java\jdk1.8.0\bin;%SystemRoot%\system32