The SDK Manager does not open, "the system cannot find the path specified" "Unable to access jarfile Lib\archquery.jar" problem resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.