English 中文(简体)
Could not find adb.exe - after upgrade to Android SDK 2.3
原标题:

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)Androidandroid-sdk-windowsplatform-toolsadb.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?

最佳回答

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.

问题回答

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.

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

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

@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

what I did...

  1. closed my projects and exited Eclipse
  2. executed [MYDRIVE]:[MYANDROIDPATH]android-sdk-windows oolsandroid.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-windowsplatform-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 !

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

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.

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.

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

start AVD Manager from Command Line
Installed Packages Update All
Accept to update all

Start Eclipse->Help->Check for updates->Update All
Restart Eclipse

You also need to update ADT plugin for eclipse, it looks for adb in the proper directory, at least it works fine for me.

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.

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.

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

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

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!





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签