Android sdk manager cannot be started because the swt. jar file is not specified. androidswt. jar

Source: Internet
Author: User
Tags android sdk manager

Android sdk manager cannot be started because the swt. jar file is not specified. androidswt. jar

The appearance of this problem actually has nothing to do with the swt. jar file. Finally, the author finds the solution through Baidu at http://www.aichengxu.com/view/39361.

Copy the following content:

Android sdk cannot run or reports "ANDROID_SWT" error. If you need it, refer to it.

After the android sdk is installed, it is generally used in eclise. Once, it was found that the direct running of sdk manager.exe could not be opened and no error was reported. It will disappear in a flash.

Because there is no error message, you have to keep working with eclipse to start sdk manager.

A few days ago, in addition to the official version of android studio, I tried it. As a result, I just installed it and reported an error when I started the configuration. This is better, and an error message "android_swt" is not set.

This error message is very confusing. In fact, it is related to swt, and the methods found on the Internet do not work. It only follows this information and finds that it uses tools \ android. bat to process environment variables.

Therefore, the same error was reported when the bat was run directly. This is easy to do. After reading his content, I found the line with the problem of tools \ lib \ find_java.bat.

"Find/I" x86 "> NUL & set arch_ext = 32 | set arch_ext = 64"

This line indicates that if it is x86, arch_ext = 32 is set; otherwise, it is 64. Used to determine the system version.

It is a pity that there is a problem with this writing method, so that the space followed by the 32 side is also set to the variable.

After removing the spaces followed by 32, the entire batch processing will be normal. ------ I don't know how Google's test was done, so I missed such a serious problem.

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.