Android ADB has moved and Eclipse is looking in the old place

Posted by Peter Nelson on Stack Overflow See other posts from Stack Overflow or by Peter Nelson
Published on 2011-02-13T15:07:33Z Indexed on 2011/02/13 15:25 UTC
Read the original article Hit count: 285

Filed under:

I did an SDK update last night and it moved adb.exe. In its place it left a file called "adb_has_moved.txt" saying

The adb tool has moved to platform-tools/

If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"

Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.

So I did all that, including the PATH and now I can start adb.exe from any DOS prompt. But I still can't start it from Eclipse (Galileo 3.52). When I try it says

Location of the Android SDK has not been set up in the preferences

... which is not true. The SDK IS set up in Preferences. The real problem is at the top of the Preferences window where it says "Could not find C:\SDK\android-sdk-windows\ tools \adb.exe!" ...No kidding - the update moved it to C:\SDK\android-sdk-windows\ platform-tools. Because it's specifying a specific (wrong) path Eclipse is bypassing the PATH variable. So how do I get Eclipse to look in the right place?

© Stack Overflow or respective owner

Related posts about android