This error, in fact, is the environment setting problem, need to modify the Sdk\tools\android.bat file
Go to your SDK directory, go to the \tools subdirectory, open Android.bat
Locate the following code:
[Java] View plaincopyprint? REM Check We have a valid Java.exe in the path. Set Java_exe= Calllib\find_java.bat ifgoto : EOF
To modify:
[Java] View plaincopyprint? REM Here we set directly, change the absolute path set Java_exe= "E:\Java\jdk1.6.0_45\bin\java.exe" to the Java.exe on your own computer REM commented out the following code, which is used to find the path to your Java.exe, REM call lib\find_java.bat
Perform android-help tests,
if "ERROR:SWT folder" does not exist ... Error hints
You will need to continue to modify to find:
[Java] View plaincopyprint? for do set swt_path=lib\%%a
comment out this paragraph and set the Swt_path directly:
[Java] View plaincopyprint? for do set swt_path=lib\%%a set Swt_path=lib\x86 modified to its own Swt.jar path
Then on the CMD command line CD to the SDK root directory, execute Tools\android.bat
[HTML] View Plaincopyprint? "%java_exe%%remote_debug%" "-dcom.android.sdkmanager.toolsdir=%tools_dir%" "- dcom.android.sdkmanager.workdir=%work_dir% "-classpath"%jar_path%;%swt_path%\swt.jar " Com.android.sdkmanager.Main%*
The SDK Manager does not open, "the system cannot find the path specified" "Unable to access jarfile Lib\archquery.jar" problem resolution