eclipse 无法安装 Android ADT
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6529092/
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
Failed to install Android ADT
提问by DJClayworth
I'm trying to install the ADT
to Eclipse Indigo
(32 bit). It consistently fails with the following message:
我正在尝试安装ADT
to Eclipse Indigo
(32 位)。它始终失败并显示以下消息:
Cannot complete the install because one or more required items could not be found.
无法完成安装,因为找不到一个或多个必需的项目。
Software currently installed: Shared profile 1.0.0.1308118821836 (SharedProfile_epp.package.java 1.0.0.1308118821836)
Missing requirement: Shared profile 1.0.0.1308118821836 (SharedProfile_epp.package.java 1.0.0.1308118821836) requires 'org.maven.ide.eclipse [1.0.0.20110607-2117]' but it could not be found
当前安装的软件:Shared Profile 1.0.0.1308118821836 (SharedProfile_epp.package.java 1.0.0.1308118821836)
缺少要求:共享配置文件 1.0.0.1308118821836 (SharedProfile_epp.package.java 1.0.0.1308118821836) 需要 'org.maven.ide.eclipse [1.0.0.20110607-2117]' 但无法找到
I've tried reinstalling the ADT and the Android SDK
, and Eclipse, without any luck. None of the other questions on this site seem relevant. I'm wondering if it's related to the migration of M2Eclipse from Sonotype to Eclipse, but I can't find anything.
我试过重新安装 ADT 和Android SDK
, 和 Eclipse,但没有任何运气。本网站上的其他问题似乎都不相关。我想知道它是否与 M2Eclipse 从 Sonotype 到 Eclipse 的迁移有关,但我找不到任何东西。
EDIT:In order to explain why the answer accepted worked, I was installing on Windows 7 Home to an account that did have Admin permission and no password. However Win7 still prompts for the Admin password when you do something that needs Admin permission, even though the account has that permission and the password is empty. It seems that the ADT installation fails even under those circumstances. When I install to a non-Admin area it works.
编辑:为了解释为什么接受的答案有效,我在 Windows 7 Home 上安装了一个具有管理员权限但没有密码的帐户。但是,Win7 在您执行需要管理员权限的操作时仍会提示输入管理员密码,即使该帐户具有该权限且密码为空。即使在这种情况下,ADT 安装似乎也会失败。当我安装到非管理区域时,它可以工作。
回答by vandut
Try running Eclipse as Super/Admin User, or move Eclipse installation somewhere with write permissions.
尝试以超级/管理员用户身份运行 Eclipse,或将 Eclipse 安装移动到具有写入权限的某处。
This answer helped a lot: Error (in GTK?) when trying to install EclipseXul plugin
这个答案有很大帮助:尝试安装 EclipseXul 插件时出错(在 GTK 中?)
回答by James Blackburn
Technically this is an Eclipse bug, fixed in the next release. The central shared install needn't be writable to run eclipse (it should just install additional plugins into the user's cascaded configuration). See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=350645
从技术上讲,这是一个 Eclipse 错误,已在下一个版本中修复。中央共享安装不需要可写来运行 eclipse(它应该只是将附加插件安装到用户的级联配置中)。另见:https: //bugs.eclipse.org/bugs/show_bug.cgi?id=350645
回答by Nardos
In linux, making the whole eclipse directory writable to the world solves this problem. Assuming that the eclipse is installed in /opt/eclipse
:
在linux中,让整个eclipse目录对全世界都可写解决了这个问题。假设eclipse安装在/opt/eclipse
:
#chmod -R 777 /opt/eclipse
回答by Walter Mundt
I ran into this error on Ubuntu 11.04 after having installed Eclipse 3.5 via the package manager, removed it, and then installed 3.7 manually. It was a result of some leftover bits of the previous version. Here's what I did to fix it, more or less: (NOTE: this will wipe your Eclipse configuration!). If you use a nonstandard workspace location, adjust the path in the second line.
通过包管理器安装 Eclipse 3.5 后,我在 Ubuntu 11.04 上遇到了这个错误,将其删除,然后手动安装 3.7。这是以前版本的一些剩余部分的结果。这是我或多或少地修复它的方法:(注意:这将清除您的 Eclipse 配置!)。如果使用非标准工作区位置,请调整第二行中的路径。
sudo apt-get purge eclipse-platform libecj-java eclipse libequinox-osgi-java
rm -rf ~/.eclipse ~/workspace/.metadata