Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)\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?

like image 260
Jonas Avatar asked Dec 07 '10 09:12

Jonas


People also ask

How do I fix Android SDK file not found adb?

Reinstalling the platform tools might fix this problem. Open Android Studio, click SDK Manager in the toolbar or click Tools > SDK Manager, click SDK Tools, then uncheck Android-SDK Platform-Tools (as shown above). After this, open C:\Users\Username\AppData\Local\Android\Sdk and delete the platform-tools folder.

Where is adb exe in Android SDK?

The executable of ADB, adb.exe, can be found under Android SDK's child folder, platform-tools/. For example, in my case, it is under C:UsersChunyenAppDataLocalAndroidsdkplatform-tools. I recommend you add your folder path to the evironment variable.

Why does it say unable to locate adb?

As it turns out, the error message appears when Android Studio is not able to locate the ADB.exe file that is located in the platform-tools folder. This can happen due to several reasons including when your antivirus software removes the adb.exe file due to a false alarm.

Where is adb exe located?

adb is included in the Android SDK Platform-Tools package. You can download this package with the SDK Manager, which installs it at android_sdk /platform-tools/ . Or if you want the standalone Android SDK Platform-Tools package, you can download it here.


2 Answers

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.

like image 139
disco Avatar answered Nov 08 '22 05:11

disco


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

like image 41
f00z Avatar answered Nov 08 '22 06:11

f00z