Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: SWT folder '' does not exist. Please set ANDROID_SWT .. a get this error after a SDK update

My SDK Manager does not work after an android sdk manager update to the last version, the sdk manager.exe run correctly before the update. Now i get this message when i run the android.bat on the command line:

ERROR: SWT folder '' does not exist. Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.

can u give me a solution or some instruction to change into my android.bat

like image 575
Nomade Avatar asked Sep 06 '13 16:09

Nomade


3 Answers

I added this line :

set java_exe=C:\Windows\System32\java.exe

after this lines in my android.bat :

rem Check we have a valid Java.exe in the path.
set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF

the SDK Manager.exe run correctly now :D !

like image 125
Nomade Avatar answered Oct 17 '22 04:10

Nomade


delete

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

add, if you using x86_64 system

set swt_path=lib\x86_64

otherwise

set swt_path=lib\x86
like image 26
KCC Avatar answered Oct 17 '22 06:10

KCC


Add this line -:

set java_exe=%JAVA_HOME%\bin\java.exe

after these lines in your android.bat :

set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF

and this line -:

set swt_path=lib\x86_64

after these lines :

rem Set SWT.Jar path based on current architecture (x86 or x86_64)
for /f "delims=" %%a in ('"%java_exe%" -jar lib\archquery.jar') do set swt_path=lib\%%a  

In case your system is 32-bit, change

set swt_path=lib\x86_64

to

set swt_path=lib\x86
like image 3
Anmol Singh Jaggi Avatar answered Oct 17 '22 06:10

Anmol Singh Jaggi