升级到 Android SDK 2.3 后找不到 adb.exe

发布于 2024-10-06 17:39:58 字数 283 浏览 0 评论 0原文

我已将 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 技术交流群。

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

发布评论

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

评论(18

一笔一画续写前缘 2024-10-13 17:39:59

当我尝试运行我的项目时,我的防病毒软件删除了 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

enter image description here

黯然#的苍凉 2024-10-13 17:39:59

它现在位于平台工具下。您必须使用 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.

日记撕了你也走了 2024-10-13 17:39:59

我有同样的问题。我必须重新启动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.

幼儿园老大 2024-10-13 17:39:59

这解决了我的问题,即即使我将文件夹路径指向平台工具目录(其中包含 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

无声无音无过去 2024-10-13 17:39:59

从命令行启动 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

ㄟ。诗瑗 2024-10-13 17:39:59

您还需要更新 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.

陌上芳菲 2024-10-13 17:39:59

我还更新了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.

薔薇婲 2024-10-13 17:39:59

安装 2.3 SDK 后我遇到了同样的问题,更新 Eclipse ADT 插件解决了这个问题。较旧的 ADT 插件仍然引用 SDK/tools 文件夹。

(我使用的是 JDK 1.6、Eclipse Galileo SR2)

请注意,只有通过命令行访问 adb 时才需要在环境 PATH 变量中包含 adb.exe 路径。

我按照以下步骤操作 - 在 MAC 和 Windows 上都有一个工作环境:

  1. 我在 Android sdk 文件夹中设置了工具和平台工具的路径,如下所示:

    • 附加到 .bashrc 中的 PATH 并(我有从 .bash_profile 引用的所有内容)(MAC)
    • 附加到 PATH 环境系统变量 (Windows)
  2. 将 SDK 解压到 /Developer/SDKs (Mac) 和 Windows 上的 D: 中(之前将它放在 C: 中后,会在崩溃中丢失所有内容:)) - 对于 Windows,可以使用 Google 提供的可执行文件.

  3. 安装 Android 存储库和附加组件(适用于 Google API)

    • 转到 bash 提示符(通过单击“实用程序”中的“终端”)并输入 android(这将打开 AVD 和 SDK 管理器 (Mac)
    • 单击 SDK 文件夹中的 Setup.exe (Windows)
    • 选择左侧窗格中的可用软件包。
      - 打开第三方加载项并检查 Google Inc 的 Google API。
      (我个人已经取消了所有过时的内容,以便在将来需要时添加)
    • 点击“安装所选”。
  4. 创建 AVD

    • 按照前面的步骤再次打开 AVD 和 SDK 管理器
    • 点击左侧窗格中的“虚拟设备”。
    • 名称:AVD_2.3,级别 9,1024 MiB,然后单击“确定”
      AVD_2.3_GA 适用于 9 级 Google API,1024 MiB,然后单击“确定”。其他级别依此类推
  5. 更新 Eclipse ADT 插件

    • 转到 Eclipse -> 帮助 -> 安装新软件 -> 可用软件链接,然后选择 Android 插件选项并单击更新..(这一点非常重要,否则您将收到以下错误在下一步中找不到 adb。
  6. Specify Android SDK Location in Eclipse

    • 选择 Eclipse Preferences -> Android (MAC)
    • 选择 Windows -> 首选项 -> Android (Windows)
    • 浏览到 SDK 文件夹(不是工具或任何其他文件夹)的路径,然后单击“确定”。
      现在你一定不会收到 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:

  1. I have the path to tools as well as platform-tools in the Android sdk folder set as so:

    • Appended to PATH in .bashrc and (I have everything referenced from .bash_profile) (MAC)
    • Appended to PATH environment system variable (Windows)
  2. 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.

  3. Install the Android Repositories and Add-ons (for Google API)

    • Go to bash prompt (by clicking on Terminal in Utilities) and type android (this will open the AVD and SDK Manager (Mac)
    • Click on Setup.exe inside the SDK folder (Windows)
    • Select Available packages on left pane.
      -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)
    • Click on Install Selected.
  4. Create AVDs

    • Again bring up the AVD and SDK Manager as in the earlier step
    • Click on Virtual Devices on left pane.
    • Name: AVD_2.3 for level 9, 1024 MiB and click OK
      AVD_2.3_GA for level 9 Google API, 1024 MiB and click OK. And so on for the other levels
  5. Update Eclipse ADT Plugin

    • Go to Eclipse ->Help->Install New Software->Link of available software, and select on the Android Plugin choices and Click on Update..(this is extremely important, otherwise you will get the error of adb not found in the next step.
  6. Specify Android SDK Location in Eclipse

    • Select Eclipse Preferences->Android (MAC)
    • Select Windows->Preferences->Android (Windows)
    • Browse to the path to the SDK folder (not the tools or any other folder) and click OK.
      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.
吃兔兔 2024-10-13 17:39:59

我能够按如下方式修复错误。
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

箜明 2024-10-13 17:39:59

我遇到了同样的问题并通过以下方法解决了这个问题:
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

小镇女孩 2024-10-13 17:39:59

转到“帮助”->在 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!

又爬满兰若 2024-10-13 17:39:59

你可以说我很傻,但如果你只是阅读了 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.

清风不识月 2024-10-13 17:39:58

我只是做了“帮助”->在 Eclipse 中“检查更新”。然后我检查了所有可能的更新(我接受了 2 个),等待更新完成,重新启动 Eclipse,然后一切都修复了!

不过,更新后我遇到了一些新的构建错误,如下所示:

错误:以非位置格式指定的多个替换;您的意思是添加 formatted="false" 属性

我不会解释该问题的解决方案,因为这篇文章与此无关!
然而;该问题的解决方案可以在 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:

error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute

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.

梦境 2024-10-13 17:39:58

我有同样的问题。我通过转到帮助 -> 解决了这个问题检查更新并更新 Eclipse 中列出的组件。

I had the same issue. I resolved it by going to Help -> Check for Updates and update the listed components in Eclipse.

橘虞初梦 2024-10-13 17:39:58

您现在需要更新 PATH 以反映位于“平台工具”中的 ADB。

在 Mac OS X 上,打开终端并将以下行添加到您的 .bash_profile 中:

export PATH=${PATH}:/Users/yourname/Library/android-sdk/tools:/Users/yourname/Library/android-sdk/platform-tools:

您的 .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:

export PATH=${PATH}:/Users/yourname/Library/android-sdk/tools:/Users/yourname/Library/android-sdk/platform-tools:

Your .bash_profile is located at

~/.bash_profile
錯遇了你 2024-10-13 17:39:58

@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.
aalt text

不再让梦枯萎 2024-10-13 17:39:58

我的 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 an adb.exe and it works better. My first installation most have failed without prompting it for me.

走走停停 2024-10-13 17:39:58

我做了什么......

  1. 关闭我的项目并退出
    Eclipse
  2. 执行
    [MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\tools\android.bat
  3. 选择“可用包”->
    “Android 存储库”并安装
    列出的所有内容都
  4. 关闭了安装屏幕,
    退出 android.bat DOS 窗口
  5. 更新 PATH 环境
    要包含的变量
    “[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\platform-tools”
  6. 启动 Eclipse 并出现错误
    消息...点击:帮助->查看
    对于更新,
  7. 让它更新“Android DDMS”,
    “Android Dev 工具”,(和 Mercurial)
  8. 重新启动 Eclipse
  9. 单击:Window ->首选项->
    检查路径是否为
    “[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows”。
    点击:申请-> OK
  10. 重新启动Eclipse(只是为了
    当然),打开我的项目...返回
    去工作!

what I did...

  1. closed my projects and exited
    Eclipse
  2. executed
    [MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\tools\android.bat
  3. selected "Available Packages" ->
    "Android Repository" and installed
    everything listed
  4. closed the installation screen and
    exited the android.bat DOS window
  5. updated the PATH environment
    variable to include
    "[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows\platform-tools"
  6. started Eclipse and got error
    message... clicked: Help -> Check
    for Updates
  7. let it update "Android DDMS",
    "Android Dev tools", (and Mercurial)
  8. restart Eclipse
  9. Click: Window -> Preferences ->
    checked that the path was
    "[MYDRIVE]:[MYANDROIDPATH]\android-sdk-windows".
    Clicked: Apply -> OK
  10. restarted Eclipse (just to be
    sure), opened my projects... back
    to work !
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文