简体   繁体   English

在Eclipse Indigo上安装ADT

[英]Installing ADT on Eclipse Indigo

On Eclipse Indigo 64-bit, I tried to install ADT (Android Development Tools) plugin ver 15.0. 在Eclipse Indigo 64位上,我尝试安装ADT(Android开发工具)插件版本15.0。 But I get this error : 但我得到这个错误:

Cannot complete the install because one or more required items could not be found. 无法完成安装,因为找不到一个或多个必需的项目。 Software currently installed: Shared profile 1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) Missing requirement: Shared profile 1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found 当前安装的软件:共享配置文件1.0.0.1316138720972(SharedProfile_epp.package.java 1.0.0.1316138720972)缺少要求:共享配置文件1.0.0.1316138720972(SharedProfile_epp.package.java 1.0.0.1316138720972)需要'org.maven.ide.eclipse [1.0.100.20110804 -1717]'但是找不到它

Do I need to install an eclipse dependency ? 我是否需要安装eclipse依赖项?

I installed eclipse into /opt as root. 我将eclipse作为root安装到/ opt中。 I had this exact issue. 我有这个问题。

Seems that this has something to do with permissions (Yeah, great error message, I know). 似乎这与权限有关(是的,很好的错误信息,我知道)。

I simply installed the plugins while running eclipse as root: 我只是在以root身份运行eclipse时安装了插件:

user@computer ~$ sudo eclipse &

Problem solved! 问题解决了!

EDIT: Instead of this, when you install it, you can change the ownership of the eclipse files so that you don't have to run as super user every time you want to install an addon. 编辑:而不是这样,当您安装它时,您可以更改eclipse文件的所有权,这样您就不必每次要安装插件时以超级用户身份运行。

user@computer /opt $ sudo chown -R user eclipse/

It's an Eclipse bug, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=350645 这是一个Eclipse bug,请参阅: https//bugs.eclipse.org/bugs/show_bug.cgi?id = 350645

You shouldn't need to be administrator to install additional plugins... 你不应该是管理员来安装额外的插件......

Alright... this solved my problem: 好吧......这解决了我的问题:

  1. Open Eclipse 打开Eclipse
  2. Go to Help > Install New Software > click on Available Software Sites. 转到帮助>安装新软件>单击可用软件站点。
  3. Make sure that "http://download.eclipse.org/releases/indigo" is checked. 确保选中“http://download.eclipse.org/releases/indigo”。
  4. Then.. enable the "contact all update sites.." option on the Install new software page. 然后..启用“安装新软件”页面上的“联系所有更新站点..”选项。

You should be all set! 你应该全力以赴!

使用管理员权限运行Eclipse ...如果在Windows上右键单击,并选择以管理员身份运行

Try to download the SDK archive and follow these instructions, it worked for me. 尝试下载SDK存档并按照这些说明操作,它对我有用。

http://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting http://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting

  1. Download the ADT Plugin zip file (do not unpack it): 下载ADT插件zip文件(不要解压缩):
  2. Start Eclipse, then select Help > Install New Software. 启动Eclipse,然后选择“帮助”>“安装新软件”。
  3. Click Add, in the top-right corner. 单击右上角的“添加”。
  4. In the Add Repository dialog, click Archive. 在“添加存储库”对话框中,单击“存档”。
  5. Select the downloaded ADT-21.0.0.zip file and click OK. 选择下载的ADT-21.0.0.zip文件,然后单击“确定”。
  6. Enter "ADT Plugin" for the name and click OK. 输入“ADT Plugin”作为名称,然后单击“确定”。
  7. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. 在Available Software对话框中,选中Developer Tools旁边的复选框,然后单击Next。
  8. In the next window, you'll see a list of the tools to be downloaded. 在下一个窗口中,您将看到要下载的工具列表。 Click Next. 点击下一步。
  9. Read and accept the license agreements, then click Finish. 阅读并接受许可协议,然后单击“完成”。

If you get a security warning saying that the authenticity or validity of the software can't be established, click OK. 如果您收到安全警告,指出无法建立软件的真实性或有效性,请单击“确定”。

Lastly, when the installation completes, restart Eclipse. 最后,安装完成后,重新启动Eclipse。

Try to enable the "contact all update sites.." option on the Install new software page. 尝试在“安装新软件”页面上启用“联系所有更新站点..”选项。

That said, ADT should not have a dependency on epp packages, unless you have some other software installed along with Eclipse. 也就是说,除非您在Eclipse中安装了其他一些软件,否则ADT不应该依赖于epp软件包。 Please make sure you're using one of the following Eclipse versions: Eclipse IDE for Java Developers Eclipse Classic (versions 3.5.1 and higher) Eclipse IDE for Java EE Developers 请确保您使用以下Eclipse版本之一:适用于Java开发人员的Eclipse IDE Eclipse Classic(版本3.5.1和更高版本)适用于Java EE开发人员的Eclipse IDE

Follow instructions on http://developer.android.com/sdk/eclipse-adt.html thereafter. 之后按照http://developer.android.com/sdk/eclipse-adt.html上的说明进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM