升级到 Android SDK 2.3 后找不到 adb.exe
我已将 Android SDK 升级到版本 2.3 和 Android 开发工具 8.0.0。现在在 Eclipse 中,我收到一条错误消息:
找不到 C:\Program Files (x86)\Android\android-sdk-windows\platform-tools\adb.exe!
而且我没有那个文件。我该如何解决这个问题?这是 Android SDK 2.3 或 Android Development Tools 8.0.0 中的错误吗?
I have upgraded my Android SDK to version 2.3 and Android Development Tools 8.0.0. Now in Eclipse, I get an error message:
Could not find C:\Program Files (x86)\Android\android-sdk-windows\platform-tools\adb.exe!
And I don't have that file. How can I fix this? Is it a bug in the Android SDK 2.3 or Android Development Tools 8.0.0?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(18)
当我尝试运行我的项目时,我的防病毒软件删除了 adb.exe 文件
我所要做的就是重新安装
Android SDK Platform-tools
并修复它My Antivirus removed the adb.exe file when i was trying to run my project
all i had to do is to reinstall
Android SDK Platform-tools
and it fixed it它现在位于平台工具下。您必须使用 Android 工具来选择包“platform-tools”来安装它。
我知道,这很愚蠢。
It is now under platform-tools. You have to install it using the Android tool to select the package "platform-tools".
I know, it is silly.
我有同样的问题。我必须重新启动eclipse 3次,然后重新启动,然后它就起作用了。哦,我还必须关闭所有打开的项目。
I had the same issue. I had to restart eclipse three times, and reboot, and then it worked. Oh, and I had to close all open projects as well.
这解决了我的问题,即即使我将文件夹路径指向平台工具目录(其中包含 adb.exe),它也不会启用“确定/应用”按钮。我以为我已经安装了ADT插件(我安装了一些东西)但显然不是正确的事情。
转到此处并按照以下说明进行操作:
http://developer.android.com/sdk/eclipse-adt.html
This solved my problem which was that even though I pointed the folder path at my platform-tools directory (which contained the adb.exe), it wouldn't enable the OK/Apply button. I thought I had installed the ADT plug-in (I installed something) but apparently not the right thing.
Go here and follow these instructions:
http://developer.android.com/sdk/eclipse-adt.html
从命令行启动 AVD 管理器
已安装的软件包全部更新
接受更新全部
启动 Eclipse->帮助->检查更新->全部更新
重启Eclipse
start AVD Manager from Command Line
Installed Packages Update All
Accept to update all
Start Eclipse->Help->Check for updates->Update All
Restart Eclipse
您还需要更新 eclipse 的 ADT 插件,它会在正确的目录中查找 adb,至少它对我来说工作得很好。
You also need to update ADT plugin for eclipse, it looks for adb in the proper directory, at least it works fine for me.
我还更新了eclipse的ADT插件,尽管我原本三天前才加载了eclipse插件。更新插件解决了缺少 adb.exe 的问题。
I also updated the ADT plugin for eclipse, even though I originally only loaded the eclipse plugin three days ago. Updating the plugin solved the missing adb.exe problem.
安装 2.3 SDK 后我遇到了同样的问题,更新 Eclipse ADT 插件解决了这个问题。较旧的 ADT 插件仍然引用 SDK/tools 文件夹。
(我使用的是 JDK 1.6、Eclipse Galileo SR2)
请注意,只有通过命令行访问 adb 时才需要在环境 PATH 变量中包含 adb.exe 路径。
我按照以下步骤操作 - 在 MAC 和 Windows 上都有一个工作环境:
我在 Android sdk 文件夹中设置了工具和平台工具的路径,如下所示:
将 SDK 解压到 /Developer/SDKs (Mac) 和 Windows 上的 D: 中(之前将它放在 C: 中后,会在崩溃中丢失所有内容:)) - 对于 Windows,可以使用 Google 提供的可执行文件.
安装 Android 存储库和附加组件(适用于 Google API)
- 打开第三方加载项并检查 Google Inc 的 Google API。
(我个人已经取消了所有过时的内容,以便在将来需要时添加)
创建 AVD
AVD_2.3_GA 适用于 9 级 Google API,1024 MiB,然后单击“确定”。其他级别依此类推
更新 Eclipse ADT 插件
Specify Android SDK Location in Eclipse
现在你一定不会收到 adb 错误:)
如果您所做的一切正确,您应该会看到所有 AVD,如果您没有看到它,请关闭对话框并再次打开它,您必须看到您在步骤 3 中创建的所有 AVD。
I had the same issue after installing the 2.3 SDK, updating the Eclipse ADT Plugin solved the issue. Older ADT plugins were still referring to SDK/tools folder.
(I am using JDK 1.6, Eclipse Galileo SR2)
Please not that including adb.exe path in the environment PATH variable is only necessary for accessing adb through command line.
I followed the following steps - and have a working environment on both MAC and Windows:
I have the path to tools as well as platform-tools in the Android sdk folder set as so:
Unzipped SDK to /Developer/SDKs (Mac) and in D: on windows (after having it in C: earlier an losing everything in a crash :)) - for windows one can use the executable provided by Google.
Install the Android Repositories and Add-ons (for Google API)
-Open Third party add-ons and check on Google Inc for Google APIs.
(I personally have unchecked everything obsolete, to add in the future IF needed)
Create AVDs
AVD_2.3_GA for level 9 Google API, 1024 MiB and click OK. And so on for the other levels
Update Eclipse ADT Plugin
Specify Android SDK Location in Eclipse
Now you MUST NOT get the adb error :)
If you have done everything right you should see all the AVDs, if you do not see it, close the dialog and open it again, you MUST see all AVDs which you created in step 3.
我能够按如下方式修复错误。
1.进入eclipse点击Help>Check for Updates
2. 进入 Windows->Android SDK 和 AVD Manager->安装包->Android SDK工具(安装)。
3. 重启Eclipse
I was able to fix the error as follows.
1. Go to eclipse Click Help>Check for Updates
2. Go to Windows->Android SDK and AVD Manager-> Install packages->Android SDK tools (install).
3. Restart Eclipse
我遇到了同样的问题并通过以下方法解决了这个问题:
1)“帮助”-> Eclipse 中的“检查更新”
2) 转到 android sdk lib - sdk 管理器 - 安装“Android SDK platform-tools”
就是这样
祝你好运
I had the same issue and solved this by the following :
1) "Help" -> "Check for uppdates" in Eclipse
2) GOTO android sdk lib - sdk manager - install "Android SDK platform-tools"
thats it
good luck
转到“帮助”->在 Eclipse 中“检查更新”。然后检查每个可能的更新,等待更新完成,重新启动 Eclipse,然后一切都修复了!
Go to "Help" -> "Check for uppdates" in Eclipse. Then check every update possible, wait for the updates to complete, restarted Eclipse and then everything is fix!
你可以说我很傻,但如果你只是阅读了 SDK\ Readme.txt
$ cat SDK\ Readme.txt
欢迎使用 Android SDK!
Android SDK 存档现在仅包含工具。 它不再来了
填充了特定的 Android 平台或 Google 插件。 相反,您
使用 SDK Manager 安装或更新 SDK 组件,例如平台、
工具、附加组件和文档。
为了开始开发应用程序,您必须至少安装一个
使用 SDK Manager 的 Android 平台版本。
这需要互联网连接,因此如果您打算使用 SDK
离线时,请确保在线时下载必要的组件。
要启动 SDK Manager,请执行程序“tools/android”。
从命令行,您还可以通过以下方式直接触发更新
执行:
tools/android update sdk
有关详细信息,请参阅 Android 网站:
http://developer.android.com
我现在累了,我必须休息 --- 这让我筋疲力尽我所有的精力。
Call me silly, but if you just read the SDK\ Readme.txt
$ cat SDK\ Readme.txt
Welcome to the Android SDK!
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".
From the command-line you can also directly trigger an update by
executing:
tools/android update sdk
For more information, please consult the Android web site at
http://developer.android.com
I'm tired now, I must rest --- that drained me of all my energy.
我只是做了“帮助”->在 Eclipse 中“检查更新”。然后我检查了所有可能的更新(我接受了 2 个),等待更新完成,重新启动 Eclipse,然后一切都修复了!
不过,更新后我遇到了一些新的构建错误,如下所示:
我不会解释该问题的解决方案,因为这篇文章与此无关!
然而;该问题的解决方案可以在 Google 网上论坛 Android 开发者小组帖子中找到,SDK 2.3:出现“以非位置格式指定的多个替换”错误。
I simply did "Help" -> "Check for uppdates" in Eclipse. Then I checked every update possible (I had 2) accepted, waited for the updates to complete, restarted Eclipse and then everything was fixed!
I had some new build errors after the update, though, saying something like:
I won't explain the solution to that problem since this post isn't about it!
However; the solution to that problem can be found in the Google Groups group Android Developers post, SDK 2.3: Get "Multiple substitutions specified in non-positional format" error.
我有同样的问题。我通过转到帮助 -> 解决了这个问题检查更新并更新 Eclipse 中列出的组件。
I had the same issue. I resolved it by going to Help -> Check for Updates and update the listed components in Eclipse.
您现在需要更新 PATH 以反映位于“平台工具”中的 ADB。
在 Mac OS X 上,打开终端并将以下行添加到您的 .bash_profile 中:
您的 .bash_profile 位于
You need to update the PATH to reflect ADB located in "Platform-Tools" now.
On Mac OS X, open up your terminal and add the following line to your .bash_profile:
Your .bash_profile is located at
@Jonas 在您的 Eclipse 中单击“帮助”>“检查更新”。这将更新 ADT 插件。新的 ADT 插件知道在哪里可以找到 apt 和 adb。只要这样做,您的问题就会得到解决,
编辑:查看图像。也安装前两项。
a
@Jonas In your eclipse Click Help>Check for Updates. This will update the ADT Plugin. The new ADT plugin knows where to find apt and adb. Jus do this and your prob will be fixed,
EDIT: See the image. Install the first two items as well.
a
我的
adb.exe
丢失了。所以我卸载了Android 2.3 SDK并重新安装。现在我有了一个adb.exe
并且它工作得更好了。我的第一次安装大多数都在没有提示的情况下失败了。My
adb.exe
was missing. So I uninstalled the Android 2.3 SDK and installed it again. Now I have anadb.exe
and it works better. My first installation most have failed without prompting it for me.我做了什么......
Eclipse
[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\tools\android.bat
“Android 存储库”并安装
列出的所有内容都
退出 android.bat DOS 窗口
要包含的变量
“[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\platform-tools”
消息...点击:帮助->查看
对于更新,
“Android Dev 工具”,(和 Mercurial)
检查路径是否为
“[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows”。
点击:申请-> OK
当然),打开我的项目...返回
去工作!
what I did...
Eclipse
[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\tools\android.bat
"Android Repository" and installed
everything listed
exited the android.bat DOS window
variable to include
"[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\platform-tools"
message... clicked: Help -> Check
for Updates
"Android Dev tools", (and Mercurial)
checked that the path was
"[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows".
Clicked: Apply -> OK
sure), opened my projects... back
to work !