我对安卓很感兴趣。我使用带有 ADT 插件的 Eclipse,我从 GitHub 站点下载了一个项目并试图理解它。
但是无法打开XML文件,错误信息:
“此渲染库版本比您的ADT插件版本更新,请更新ADT插件”。
虽然我已经安装了 v23.0.2.1,但我的 ADT 版本对于这个最近的项目来说似乎是旧的。
我需要帮助才能获得 ADT 的最新版本或针对我的问题的其他解决方案。
谢谢
最佳答案
您是否使用 Eclipse ADT Bundle
,我的意思是 - 在 Android Studio 1.0
发布之前,有 ADT Bundle - Eclipse 和其他 Android 工具。
我明白了,它仍然可以下载:http://tools.android.com/recent/eclipseadtbundleupdated
如果您使用它,请删除它并从此站点下载干净的 Eclipse: https://eclipse.org/downloads/packages/release/Mars/1
如果您还计划使用 Android 兼容 Java 以外的其他语言进行开发,请免费下载,例如:
面向 C/C++ 开发人员的 Eclipse IDE
我使用过 Eclipse for Eclipse
Eclipse IDE for Eclipse Committers 4.5.1` 和“Eclipse IDE for Java EE Developers”,所以我确信它们与 newet ADT 插件高度兼容。
安装 Eclipse 后,您需要下载并解压 Stand-alone SDK Tools
,您可以在 [此处] http://developer.android.com/sdk/index.html#Other 中找到它。
注意:Android SDK 的最新版本已经是android-sdk_r24.4.1
。
下载并解压 Eclipse
和 Android SDK
后,请阅读此文档:
http://developer.android.com/sdk/installing/installing-adt.html或者只需按照以下步骤操作:
To add the ADT plugin to Eclipse:
- Start
Eclipse
, then selectHelp > Install New Software
.- Click
Add
, in the top-right corner.- In the
Add Repository
dialog that appears, enterADT Plugin
for theName
and the followingURL
for theLocation
:https://dl-ssl.google.com/android/eclipse/
Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.
- 单击
确定
。- 在
Available Software
对话框中,选择下一步的复选框 到Developer Tools
并单击Next
。- 在下一个窗口中,您将看到要下载的工具列表。
- 单击
下一步
。- 阅读并接受许可协议(protocol),然后单击
完成
。 如果您收到一条安全警告,指出无法确定软件的真实性或有效性,请单击OK
。 安装完成后,重新启动 Eclipse。
Configure the ADT Plugin
Once Eclipse restarts, you must specify the location of your
Android SDK directory
:
- In the "Welcome to Android Development" window that appears, select
Use existing SDKs
.- Browse and select the location of the Android SDK directory you recently downloaded and unpacked.
- Click
Next
.- Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment.
- To get these packages for your SDK, continue to Adding Platforms and Packages.
关于android - 如何为eclipse安装最新版本的ADT插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34301997/