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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With