eclipse 找不到 ADB.exe 或 SDK

发布于 2024-11-13 20:05:52 字数 241 浏览 1 评论 0原文

我要疯了。我在 Eclipse 中更新到 Android SDK,Eclipse 找不到 SDK。有一段文字并未说明该文件已移至 /platform-tools,但是在我的任何文件夹中都找不到文件 ADB.exe。 SDK 管理器可以查找,但由于某种原因 Eclipse 找不到它要查找的文件。我到处寻找答案。它工作了大约 4 个月,直到我升级。我现在也使用真实设备 Droid X2。但我不认为这就是问题所在。我找不到 ADB.exe 文件。帮助解决这个问题大约2天

I am going nuts.I update to the Android SDK in Eclipse, Eclipse can't find the SDK. There is a text not that saids the the file has been moved to /platform-tools, however the file ADB.exe is nowhere to be found in any of my folders. The SDK Manager works find but for some reason Eclipse will not find the file its looking for. I have looked everywhere for the answer. It work find for about 4 months until I upgraded. I also now using a real device a Droid X2. But I don't believe this is the issue. I can't find the ADB.exe file. Help been working on this for about 2 days

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

走过海棠暮 2024-11-20 20:05:52

adb.exe 已从 {ANDROID_SDK_FOLDER}/tools 迁移到 {ANDROID_SDK_FOLDER}/platform-tools:找到您的 SDK 文件夹并在其中查找 platform-tools 文件夹。

编辑:在 Eclipse 中,如果您打开“首选项”对话框(“窗口”->“首选项”)并选择左侧的 Android 选项,它将显示 Eclipse 认为您的 Android SDK 文件夹是什么。如果您移动了 SDK 文件夹,您应该更新路径以匹配 SDK 文件夹的新位置,然后(可能需要重新启动)Eclipse 应该可以与 Android 工具一起正常工作。

编辑:好吧,我无法判断您的 ADT 是否未正确安装或者 SDK 位置是否已损坏,因此让我们尝试暴力设置 SDK 位置。在桌面上创建一个名为“adt.pref”的文本文件,然后仅将这一行放入其中:

/instance/com.android.ide.eclipse.adt/com.android.ide.eclipse.adt.sdk=C\:\\Program Files\\Android\\android-sdk

然后在 Eclipse 中选择文件->导入,然后选择常规->首选项,然后选择该文件。这应该会强制 ADT 位置与其实际位置相匹配。重新启动 Eclipse 并查看情况是否有所改善。

adb.exe was relocated from {ANDROID_SDK_FOLDER}/tools to {ANDROID_SDK_FOLDER}/platform-tools: find your SDK folder and look inside it for the platform-tools folder.

EDIT: in Eclipse, if you open the Preferences dialog (Window->Preferences) and select the Android option on the left it will show you what Eclipse THINKS is your Android SDK folder. If you moved the SDK folder you should update the path to match the new location of the SDK folder, and then (a restart might be necessary) Eclipse should work fine with the Android tools.

EDIT: well, I can't tell if your ADT isn't properly installed or if the SDK location is broken, so lets try and brute force set the SDK location. Create a text file on your desktop called "adt.pref", and then place only this line in it:

/instance/com.android.ide.eclipse.adt/com.android.ide.eclipse.adt.sdk=C\:\\Program Files\\Android\\android-sdk

then in Eclipse select File->Import then select General->Preferences and then pick that file. This should force the ADT location to match what that is. Restart Eclipse and see if that improves things.

感悟人生的甜 2024-11-20 20:05:52

我遇到了同样的问题,并通过运行 android sdk-manager (您可以在不运行 eclipse 的情况下使用开始菜单快捷方式来完成此操作)并通过它安装 Android SDK Platform-Tools 来解决它(选择方块并单击安装包.. .)。

I had the same problem and solved it by running the android sdk-manager (you can do that without running eclipse, using the start menu shortcut) and installing the Android SDK Platform-Tools through it (select the square and click install packages...).

那支青花 2024-11-20 20:05:52

此处下载 SDK。

完成后,我只需再次按照 Google 安装说明进行操作即可开始。也许你错过了一些相当简单的东西?

安装说明。

Download the SDK here.

Once that's done, I would just follow the Google installation instructions again from the beginning. Perhaps you're missing something fairly simple?

Installation instructions.

梦幻之岛 2024-11-20 20:05:52

我遇到了同样的问题。就我而言,这是由 Java JDK 升级引起的。我用的是1.6,后来升级到1.7了。

只需手动将新的 JDK 添加到 Eclipse 即可。

右键单击您的项目 JRE 系统库。选择已安装的 JRE,然后在您的计算机上找到它。

I got the same problem. In my case it was caused by an upgrade on the Java JDK. I was using 1.6 and upgraded to 1.7.

Just manually add the new JDK to Eclipse.

Right click on your project JRE System Library. Select installed JRE, and then find it on your computer.

站稳脚跟 2024-11-20 20:05:52

我遇到了同样的问题,当我查看 platform-tools 文件夹时,它是空的。
在搜索下载该文件夹的内容后,我找到了以下链接。

http://venomvendor.blogspot.com/2012 /06/android-adt-20-updated-download-offline.html

但这也帮不了我。
最后我发现这和我的网络连接有关。

I had the same problem, and when I looked inside the platform-tools folder, it was empty.
After searching for downloading the contect of this folder, I found the below link.

http://venomvendor.blogspot.com/2012/06/android-adt-20-updated-download-offline.html

But it also could not help me.
At last I found that it's related to my internet connection.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文