The Android SDK does not match the ADT version of the solution

Source: Internet
Author: User

An Android-aware item appears when you open eclipse, which means that all Android items display a red error mark. When you click on the icon for the Android Virtual Device Manager plugin on the menu window, a location of the Android SDK with not been setup in the preferences appears. As shown in the following:

Click the "OK" button and the following dialog box will appear (if not, select the Eclipse Menu window's preferences):

After the SDK location is set correctly, there is still "this Android SDK requires Android Developer Toolkit version 23.0.0 or above.  Current version is 22.6.2.v201403212031-1085508. Please update ADT to the latest version. " Because the SDK does not match the ADT version causing the AVD to open. After the SDK update, the contents of the Adt-bundle installation directory \sdk\tools\lib\plugin.prop file become "# Begin plugin.propplugin.version=23.0.0# End Plugin.prop", when eclipse looks at the file, it finds plugin.version=23.0.0, thinking that the current SDK requires 23.0.0 versions of plugins, but we are still old 22.6.2 plugins.

There are two ways to resolve this:

Workaround one: Reduce the SDK version

Change the version information of Plugin.version to the version number of the old version, such as 22.6.2, save, and restart Eclipse.

Workaround Two: Upgrade the ADT version

  1. Online upgrade

Route one: After setting up the correct SDK location, when you restart Eclipse, you should normally see the following window prompting for upgrade, click "Check for Updates" to upgrade;

      

Channel Two: Select the Eclipse menu Help, Check for updates upgrade.

For some reason, Google's server is always difficult to connect on the, so as the last two ways may eventually appear the following failure prompt, how to resolve I also haven't found, know friend also please tell me oh.

      

  2. Offline Upgrade (in fact, this server is also very difficult to connect, anyway, I failed, but there are always enthusiastic people on the Internet willing to share)

Download ADT Http://developer.android.com/intl/zh-CN/sdk/installing/installing-adt.html#Download

Do not unzip after download (in fact, the official website has been explained), the steps are as follows:

      1. start Eclipse, then select  help  >  Install New software .
      2. click  Add , in the Top-right corner.
      3. in the Add Repository dialog, click  Archive .
      4. Select the downloaded adt-23.0.0.zip file and click  OK .
      5. Enter "ADT Plugin" for the name and click  OK .
      6. in the Available Software dialog, select the checkbox next to Developer Tools and click  next . /li>
      7. in the next window, you'll see a list of the tools to be downloaded. click  Next .
      8. Read and accept the license agreements, then click  Finish .

If you get a security warning saying this authenticity or validity of the software can ' t be established, click ok< /c0>.

      1. When the installation completes, restart Eclipse.

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.