eclipse Android SDK 管理器不工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14053450/
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
Android SDK Manager not working
提问by Arun Badole
On starting Eclipse I am getting a message
在启动 Eclipse 时,我收到一条消息
This version of ADT requires Android SDK Tools revision 21.0.0 rc9 or above.
Current version is 10.0.0.
Please update your SDK tools to latest SDk version.
So on clicking Open SDK Manager button nothing happens & in console I get this message.
因此,单击“打开 SDK 管理器”按钮时什么也没有发生,并且在控制台中我收到此消息。
[2012-12-27 16:15:06 - SDK Manager] [SDK Manager] Error: Expected verb after global parameters but found 'sdk' instead.
Why?
为什么?
My SDK manager window doesn't open so I can not update SDK Tools. I am working on Ubuntu 10.10 with Eclipse Helios.
我的 SDK 管理器窗口没有打开,所以我无法更新 SDK 工具。我正在使用 Eclipse Helios 开发 Ubuntu 10.10。
回答by JoseLSegura
Try to locate where is your Android SDK Manager (the path where you installed first your SDK). Suppose that it is /opt/android-sdk-linux
and substitute where needed:
尝试找到您的 Android SDK 管理器的位置(您首先安装 SDK 的路径)。假设它是/opt/android-sdk-linux
并在需要时替换:
From a terminal, try to execute
从终端,尝试执行
sudo /opt/android-sdk-linux/tools/android
With that you will get a Android SDK Manager windows where you can upgrade your SDK elements (including the SDK Manager and tools). Probably the integration of Android SDK Manager with Eclipse has changed from version 10 to 21, making Eclipse unable to start it.
有了它,您将获得一个 Android SDK 管理器窗口,您可以在其中升级您的 SDK 元素(包括 SDK 管理器和工具)。可能是Android SDK Manager与Eclipse的集成从10版本变成了21版本,导致Eclipse无法启动。
P.S. Using sudo
could be unnecessary, depending on the path and the privileges that your user have on it.
PS Usingsudo
可能是不必要的,具体取决于您的用户对其拥有的路径和权限。
回答by preeya
If you are using the adt-bundle from android then delete and unzip the bundle again and try opening the eclipse. I faced a similar problem . I got rid of this error by doing the above step . Hope it helps you :):) .. And remember JAVA 7 is incompatible(not tested and recommend) with android eclipse .. so use JAVA 6 .
如果您使用的是来自 android 的 adt-bundle,请再次删除并解压缩该包,然后尝试打开 eclipse。我遇到了类似的问题。我通过执行上述步骤摆脱了这个错误。希望它能帮助你 :):) .. 记住 JAVA 7 与 android eclipse 不兼容(未经测试和推荐).. 所以使用 JAVA 6 。
-Preeya
-Preeya
回答by Pedro Bernardo
Latest ADT and sdk tools installed but still asking for latest sdk tools
安装了最新的 ADT 和 sdk 工具,但仍然需要最新的 sdk 工具
"Actually, the solution involves no delete or download of the whole installer. After you update the Eclipse ADT, you just have to update the SDK tools in the SDK manager too. The trick is open SDK manager -> Packages menu -> Reload. Then the latest revision will be available to update. It's just that simple, but actually annoying at first."
“实际上,该解决方案不涉及删除或下载整个安装程序。更新 Eclipse ADT 后,您只需要更新 SDK 管理器中的 SDK 工具。诀窍是打开 SDK 管理器 -> 包菜单 -> 重新加载。然后最新的版本就可以更新了。就是这么简单,但一开始真的很烦人。”
It worked for me
它对我有用
回答by stannums
Check path in Window -- Preferences -- Android. Must be right
检查窗口--首选项--Android 中的路径。一定是对的