Skip to content

error Failed to install the app. Please accept all necessary Android SDK licenses using Android SDK Manager: “$ANDROID_HOME/tools/bin/sdkmanager –licenses”. React native error. How to fix?

Advertisements
error Failed to install the app. Please accept all necessary Android SDK licenses using Android SDK Manager: "$ANDROID_HOME/tools/bin/sdkmanager --licenses".
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

You have to accept all license agreements for using Android SDK Manager. Navigate to the following directory and run sdkmanager with licenses as an argument. It would prompt you to accept all license agreements.

>/home/subash/anand/Sdk/tools/bin
>./sdkmanager --licenses
Warning: File /home/anand/.android/repositories.cfg could not be loaded.       
6 of 6 SDK package licenses not accepted. 100% Computing updates...             
Review licenses that have not been accepted (y/N)? y

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.