android - 如何为eclipse安装最新版本的ADT插件

标签 android android-layout android-fragments android-intent

我对安卓很感兴趣。我使用带有 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 EclipseEclipse 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

下载并解压 EclipseAndroid SDK 后,请阅读此文档: http://developer.android.com/sdk/installing/installing-adt.html或者只需按照以下步骤操作:

To add the ADT plugin to Eclipse:

  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter ADT Plugin for the Name and the following URL for the Location: 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.

  1. 单击确定
  2. Available Software 对话框中,选择下一步的复选框Developer Tools 并单击 Next
  3. 在下一个窗口中,您将看到要下载的工具列表。
  4. 单击下一步
  5. 阅读并接受许可协议(protocol),然后单击完成。 如果您收到一条安全警告,指出无法确定软件的真实性或有效性,请单击 OK。 安装完成后,重新启动 Eclipse。

Configure the ADT Plugin

Once Eclipse restarts, you must specify the location of your Android SDK directory:

  1. In the "Welcome to Android Development" window that appears, select Use existing SDKs.
  2. Browse and select the location of the Android SDK directory you recently downloaded and unpacked.
  3. Click Next.
  4. 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.
  5. To get these packages for your SDK, continue to Adding Platforms and Packages.

关于android - 如何为eclipse安装最新版本的ADT插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34301997/

相关文章:

Android自定义控件这可能吗?

Android - fragment 还是自定义 View ?我应该使用哪个?

java - 如何在android中的imageview上添加这个效果

Android - getCurrentFocus().clearFocus() 时会发生什么

android - 使用 JNI 在 C++ 中访问二维数组字段

android - 重复网络任务的最佳实践?

安卓工作室错误? AntergOS Android SDK无法与Android Studio或AUR一起安装

android - 卡在添加 View 中

android - 将内容设置为 Cardview pre 5.0 的边缘

android - CoordinatorLayout 推送的 Actionbar