Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to find Build Tools revision 24.0.1 when deploying meteor to android-device

Tags:

meteor

cordova

By mistake I completely delete the Android SDK folder. Previously I have deployed meteor to android devices many times, using cordova/phonegap. When reinstalling SDK via Android Studio and try to run meteor in device I'm getting this error:

A problem occurred configuring root project 'android'. > failed to find Build Tools revision 24.0.1

What could be wrong? I have checked Android Studio SDK Manager and I have correctly installed: 1) SDK Platform (Build 23) 2) SDK Build Tools (Build 24.0.1) 3) SDK Platform Tools (Build 24.0.1)

Also I have correctly set the HOME PATH variable and checked the build-tools folder and the mentioned version is there. Any advice could be appreciated.

like image 850
Ruben Avatar asked Jul 20 '16 17:07

Ruben


People also ask

How do I find my build tools?

Android SDK Build-Tools is a component of the Android SDK required for building Android apps. It's installed in the <sdk>/build-tools/ directory.

How to check buildToolsVersion in Android studio?

For the compileSdkVersion you can goto Tools > Android > SDK Manager . This will pull up a window that will allow you to manage your compileSdkVersion and your buildToolsVersion . You can also select the link at the bottom left (Launch Standalone SDK Manager) this will give you a little bit more information.


2 Answers

I had this problem too. Even though the build tools were installed using SDK manager, Cordova couldn't locate them. I resolved it by reinstalling the build tools via command line:

~/| cd ~/Library/Android/sdk
~/Android/Sdk| ./tools/android list sdk -a | grep "SDK Build-tools"
   4- Android SDK Build-tools, revision 24.0.1
   ...
~/Android/Sdk| ./tools/android update sdk -a -u -t 4
   ...

After doing this, Cordova did recognize the build tools.

like image 138
Roger Carvalho Avatar answered Oct 07 '22 00:10

Roger Carvalho


Run from console the command: Android.

It will brings up the android manager (Different to Android studio SDK manager). It will show that build tools version 24.0.1 is not installed. Select and install it and problem solved.

Oddly the version installed by Android Studio as 24.0.1 is shown by Android Manager as 24, plain.

p.s. You should run the Android command inside the sdk/tools directory unless you already have included it in your $PATH variable.

like image 41
Ruben Avatar answered Oct 07 '22 00:10

Ruben