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:
-
- start Eclipse, then select help > Install New software .
- click Add , in the Top-right corner.
- in the Add Repository dialog, click Archive .
- Select the downloaded adt-23.0.0.zip file and click OK .
- Enter "ADT Plugin" for the name and click OK .
- in the Available Software dialog, select the checkbox next to Developer Tools and click next . /li>
- in the next window, you'll see a list of the tools to be downloaded. click Next .
- 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>.
-
- When the installation completes, restart Eclipse.