在 Eclipse 上安装 ADT

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11419858/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:31:39  来源:igfitidea点击:

Installing ADT on Eclipse

androideclipseplugins

提问by Dominic Rose

This kind of speaks for itself...

这种话不言自明……

Cannot complete the install because one or more required items could not be found.

无法完成安装,因为找不到一个或多个必需的项目。

Software being installed: Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819)

正在安装的软件:Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819)

Missing requirement: Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found

缺少要求:Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819) 需要'org.eclipse.cdt.feature.group 0.00 '但是找不到

Did somebody else had the same problem ? Google tells me to install the plugin manually.

其他人有同样的问题吗?谷歌告诉我手动安装插件。

ADT Installation

ADT 安装

回答by Jc Mi?arro

I had this problem too, and I solved it by the next way.

我也遇到了这个问题,我通过下一个方法解决了。

  1. Go to Help, "Install New Software..."
  2. Click on "Available Sofware Sites"
  3. Search http://download.eclipse.org/releases/indigoand enable it
  4. Search http://download.eclipse.org/tools/cdt/releases/indigoand enable it
  5. Come back to Help, "Install New Software..."
  6. Check "Contact all update sites during install to find requiered sofware"
  7. Install ADT Plugin
  8. IT MUST WORK!!!
  1. 转到帮助,“安装新软件...”
  2. 单击“可用的软件站点”
  3. 搜索http://download.eclipse.org/releases/indigo并启用它
  4. 搜索http://download.eclipse.org/tools/cdt/releases/indigo并启用它
  5. 返回帮助,“安装新软件...”
  6. 选中“在安装过程中联系所有更新站点以查找所需的软件”
  7. 安装 ADT 插件
  8. 它必须工作!!!

回答by ramses

Just in case someone needs it, I had the same problem and solved it. It was the missing repositories that were the issue. For Juno I just went to "Install new software" > click "Add" and enter Juno as name and "http://download.eclipse.org/releases/juno" in location. After that everything works.

以防万一有人需要它,我遇到了同样的问题并解决了它。问题在于缺少的存储库。对于 Juno,我只是转到“安装新软件”> 单击“添加”并在位置输入 Juno 作为名称和“http://download.eclipse.org/releases/juno”。之后一切正常。

回答by Konstantin Komissarchik

The installation may go smoother if you start with Eclipse IDE for C Developers. That package already includes CDT plugins.

如果您从 Eclipse IDE for C Developers 开始,安装可能会更顺利。该软件包已经包含 CDT 插件。

Alternative, try the following:

或者,请尝试以下操作:

  1. In the install wizard, look for "Available Software Sites" link. Click on it. Make sure that you see a repository listed with a URL like "http/download.eclipse.org/releases/juno". And that that listing is enabled. The last segment of the URL can very depending on the version of Eclipse you have... ganymede, helios, indigo, juno.

  2. Back in the install dialog, ensure that "contact all update sites..." checkbox is checked.

  1. 在安装向导中,查找“可用软件站点”链接。点击它。确保您看到一个存储库,其中列出了一个 URL,如“http/download.eclipse.org/releases/juno”。并且该列表已启用。URL 的最后一部分可能非常依赖于您拥有的 Eclipse 版本...ganymede、helios、indigo、juno。

  2. 返回安装对话框,确保选中“联系所有更新站点...”复选框。

回答by Brian Charniga

I've seen this. Did you fully install the Android SDK (Is there anything in your platform folder)? I realized I had some things missing because I couldn't reach the https source. I had to launch the Android SDK Manager and check a box for "Force https://... sources to be fetched using http://" to be sure I was seeing all files I needed to install for the SDK.

我见过这个。您是否完全安装了 Android SDK(您的平台文件夹中是否有任何内容)?我意识到我缺少一些东西,因为我无法访问 https 源。我必须启动 Android SDK 管理器并选中“强制使用 https://... 使用 http:// 获取源”复选框,以确保我看到了需要为 SDK 安装的所有文件。

Also, in Eclipse Help->Install New Software, make sure you check "Show only software applicable to target environment"

此外,在 Eclipse 帮助 -> 安装新软件中,确保选中“仅显示适用于目标环境的软件”

回答by Caverna

You can use Eclipse for Java! Just make sure you had checked "Contact all updates..." option. It'll work flawless!

您可以将 Eclipse 用于 Java!只需确保您已选中“联系所有更新...”选项。它会完美无缺地工作!