eclipse Android SDK 问题 Ubuntu 10.04lts
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8812329/
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 Issues Ubuntu 10.04lts
提问by PurpleSmurph
I have looked through the other questions on here, and on other forums. The answers didn't help my issue. I originally started out with 11.10 but thought there could be a bug or something that was stopping it from working. I have had the SDK and ADT working with Eclipse on both 10.04 and 11.10 so I really am at a loss as to what is going wrong.
我已经浏览了此处和其他论坛上的其他问题。答案对我的问题没有帮助。我最初从 11.10 开始,但认为可能存在错误或阻止它工作的东西。我在 10.04 和 11.10 上都让 SDK 和 ADT 与 Eclipse 一起工作,所以我真的不知道出了什么问题。
The error I get is as follows:
我得到的错误如下:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Traceview 16.0.1.v201112150204-238534 (com.android.ide.eclipse.traceview.feature.group 16.0.1.v201112150204-238534)
Missing requirement: Android Traceview 16.0.1.v201112150204-238534 (com.android.ide.eclipse.traceview.feature.group 16.0.1.v201112150204-238534) requires 'org.eclipse.ui 3.6.2' but it could not be found
When I ran the SDK install a second time (after uninstalling it) I noticed the following error:
当我第二次运行 SDK 安装时(卸载后),我注意到以下错误:
Stopping ADB server failed (code -1).
Unable to run 'adb': Cannot run program "/home/ben/android-sdk-linux/platform-tools/adb": java.io.IOException: error=2, No such file or directory.
Starting ADB server failed (code -1).
I didn't see it there the first time and I don't know what it means or how to fix it! Any help would be greatly appreciated, the other 'answer' I found was from the same person who asked the question, that reinstalling everything corrected the problem, I have not been so fortunate so I thought I would re-raise the query. Thank you in advance. I am using Indigo as the version, I saw elsewhere that Helios was the lowest that could use the SDK.
我第一次没有在那里看到它,我不知道它意味着什么或如何修复它!任何帮助将不胜感激,我发现的另一个“答案”来自提出问题的同一个人,重新安装所有内容都解决了问题,我没有那么幸运,所以我想我会重新提出查询。先感谢您。我使用 Indigo 作为版本,我在别处看到 Helios 是可以使用 SDK 的最低版本。
Gone back to 11.10 but the issue remains the same, the laptop is a Samsung R580 64bit.
回到 11.10 但问题仍然存在,笔记本电脑是三星 R580 64 位。
Preparing to install archives
Downloading Android SDK Platform-tools, revision 10
Installing Android SDK Platform-tools, revision 10
Stopping ADB server failed (code -1).
Still appears when installing the SDK Tools using the following command from terminal:
从终端使用以下命令安装 SDK 工具时仍然出现:
android-sdk-linux/tools/android
回答by JustinDanielson
You're problem is entirely different than the one posted by robertly, although I'm sure you've found it using google.
您的问题与 robertly 发布的问题完全不同,尽管我确定您已经使用 google 找到了它。
You're running 64bit ubuntu and forgot to run the following command.
您正在运行 64 位 ubuntu,但忘记运行以下命令。
apt-get install ia32-libs
apt-get 安装 ia32-libs
The phones aren't 64bit, so there is no 64bit version of adb. You need the ia32-libs.
手机不是 64 位的,所以没有 64 位版本的 adb。您需要 ia32-libs。
After this is done, open eclipse and go to Windows -> Android SDK Manager then, uninstall all the tools(under tools sub folder) and reinstall them.
完成后,打开eclipse并转到Windows -> Android SDK Manager,然后卸载所有工具(在tools子文件夹下)并重新安装它们。
You should no longer get the adb error.
您不应再收到 adb 错误。
Source: http://developer.android.com/sdk/installing.html#troubleshooting
来源:http: //developer.android.com/sdk/installing.html#troubleshooting
Solution #2 - I had to do this because sudo apt-get remove eclipse didn't remove it completely and it still cause errors. Doing all of this, combined with the step above solved my problem the other night.
解决方案#2 - 我必须这样做,因为 sudo apt-get remove eclipse 没有完全删除它,它仍然会导致错误。做完所有这些,结合上述步骤,前几天晚上解决了我的问题。
Delete eclipse, android folders
sudo apt-get remove eclipse
sudo add-apt-repository "deb http://archive.canonical.com/lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo update-alternatives --config java
Reinstall eclipse 3.7.1, android-sdk-linux folder
Proceed with normal installation.
删除 eclipse, android 文件夹
sudo apt-get remove eclipse
sudo add-apt-repository "deb http://archive.canonical.com/lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6 -plugin
sudo update-alternatives --config java
重新安装eclipse 3.7.1, android-sdk-linux 文件夹继续正常安装。
回答by robertly
Head on over here, it looks to be the same problem, but with a different package. Eclipse Indigo - Cannot install Android ADT Plugin
到这里来,看起来是同样的问题,但有不同的包。 Eclipse Indigo - 无法安装 Android ADT 插件
This is assuming you haven't seen that yet. If you are still having problems, I can look into it further for you.
这是假设你还没有看到。如果您仍然遇到问题,我可以为您进一步调查。