Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"tns doctor" "You need to have the Android SDK Build-tools installed on your system." but everything is installed

I have installed Android Studio and further installed the SDKs and tools via Android Studio. Here they are:

enter image description here enter image description here

And my $ANDROID_HOME paths to the following: /Users/USER/Library/Android/sdk both in the terminal as well as in Android Studio.

However, when running tns doctor I get the following:

(...) Verifying CocoaPods. This may take some time, please be patient ◟ Verifying CocoaPods. This may take some time, please be patient ◜ Verifying CocoaPods. This may take some time, please be patient ◠ Verifying CocoaPods. This may take some time, please be patient ◝ Verifying CocoaPods. This may take some time, please be patient ◞ Verifying CocoaPods. This may take some time, please be patient ◡ Verifying CocoaPods. This may take some time, please be patient..

You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=25'. Run $ $ANDROID_HOME/tools/bin/sdkmanager from your command-line to install required Android Build Tools.

Running "$ANDROID_HOME/tools/bin/sdkmanager" simply echoes a "help" prompt.

What exactly is happening here and how can I fix this so I can run "npm run android" and android related operations?

Thank you for your help

like image 340
Fane Avatar asked Nov 26 '17 15:11

Fane


People also ask

Do I need to install all SDK in Android Studio?

No, You don't need to install everything. Install the "SDK Platform" for the Android versions you've set as minimum, target, and in-between the minimum & target. The Android SDK Extras are usually not required; but it is useful to be aware of them since they may be required depending on your use case.

Where is Android SDK 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 do I install SDK Manager build tools?

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool. When an update is available for a package you already have, a dash appears in the check box next to the package.


1 Answers

Solved by executing $ANDROID_HOME/tools/bin/sdkmanager "build-tools;25.0.2"

like image 58
Fane Avatar answered Oct 13 '22 09:10

Fane