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.
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.
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.
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.
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.
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