Eclipse 未加载 android SDK
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2000053/
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
Eclipse not loading android SDK
提问by Ganesh Krishnan
I have an ubuntu 8.04 x86_64 system. I installed the ia32 libraries and manually installed(i.e. untarred) Eclipse Galileo Java EE. I then installed android's ADT-0.9.5 by downloading the zip file and pointing the software source as archive.
我有一个 ubuntu 8.04 x86_64 系统。我安装了 ia32 库并手动安装(即解压缩)Eclipse Galileo Java EE。然后我通过下载 zip 文件并将软件源指向存档来安装 android 的 ADT-0.9.5。
Now I need to add the android SDK in Windows->preferences->android. However, when I select the SDK directory there and select Apply/OK, nothing happens. The next time I open preferences, the directory is there in the selection dialog, but eclipse just won't load/do anything on clicking Apply.
现在我需要在 Windows->preferences->android 中添加 android SDK。但是,当我在那里选择 SDK 目录并选择应用/确定时,没有任何反应。下次我打开首选项时,该目录位于选择对话框中,但 Eclipse 在单击“应用”时不会加载/执行任何操作。
Could someone help me out...it is driving me crazy.
有人能帮我吗……这让我发疯。
回答by Ganesh Krishnan
Just add a forward slash "/" at the end of the path. I had the same problem on Mac OSX and solved it by adding the "/".
只需在路径末尾添加一个正斜杠“/”。我在 Mac OSX 上遇到了同样的问题,并通过添加“/”解决了它。
Annoying
恼人的
回答by diogui
I had the same problem. I'm running on
我有同样的问题。我继续
- Eclipse Galileo SR2 for linux-32bit .
- Android sdk r07 for linux
- ADT 0.9.9. (android eclipse plug-in)
- 用于 linux-32 位的 Eclipse Galileo SR2。
- 适用于 Linux 的 Android sdk r07
- ADT 0.9.9。(安卓eclipse插件)
Here is the way I got to solve the problem.
这是我解决问题的方法。
Open "SKD Readme.txt" in the folder of your android-sdk and you will see ...
打开你的android-sdk文件夹中的“SKD Readme.txt”,你会看到......
The Android SDK archive now only contains the tools. It no longer comes populated with a specific Android platform or Google add-on. Instead you use the SDK Manager to install or update SDK components such as platforms, tools, add-ons, and documentation.
In order to start developing applications, you must install at least one version of the Android platform using the SDK Manager.
This requires an Internet connection, so if you plan to use the SDK offline, please make sure to download the necessary components while online.
To start the SDK Manager, please execute the program "tools/android".
Android SDK 存档现在只包含工具。它不再带有特定的 Android 平台或 Google 插件。相反,您可以使用 SDK 管理器来安装或更新 SDK 组件,例如平台、工具、附加组件和文档。
为了开始开发应用程序,您必须使用 SDK 管理器安装至少一个版本的 Android 平台。
这需要 Internet 连接,因此如果您打算离线使用 SDK,请确保在线下载必要的组件。
要启动 SDK Manager,请执行程序“tools/android”。
So this is it. After you do this get back to eclipse and in the target area you will see several versions available.
所以就是这样。执行此操作后,返回 eclipse 并在目标区域中您将看到多个可用版本。
回答by Royi Freifeld
Run eclipse with cleanflag: path_to_eclipse_dir/eclipse -clean
(eclipse.exe on Windows)
使用干净的标志运行 eclipse :path_to_eclipse_dir/eclipse -clean
(Windows 上的 eclipse.exe)
回答by sherelock
I fixed this by deleting the entire SDK folder (in my case its name was "android-sdk-Linux
"), and then re-installing the packages.
我通过删除整个 SDK 文件夹(在我的例子中它的名称是“ android-sdk-Linux
”)来解决这个问题,然后重新安装包。
This may seem like a simple solution, but it soved the problem for me while the other solutions didn't.
这似乎是一个简单的解决方案,但它为我解决了问题,而其他解决方案却没有。