React Native: Please accept all necessary Android SDK licenses…

Last updated on December 4, 2020 A Goodman Loading... 9 comments

Problem

When try to run a React Native app on a virtual Android device with the following:

npm run Android

You may face this error:

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

Solution

To solve the problem, you need to accept all required Android SDK licenses. Just execute one of the following commands.

Windows:

cmd.exe /C"%ANDROID_HOME%\tools\bin\sdkmanager.bat --licenses" 

macOS:

yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses

The process might take a few seconds to complete. When it’s done, you’ll see something similar to this:

Done!

Subscribe
Notify of
guest
9 Comments
Inline Feedbacks
View all comments
Dhanuka Lakshan
Dhanuka Lakshan
10 days ago

Great Brother..Its Working

Taras
Taras
2 months ago

After cmd.exe /C“%ANDROID_HOME%\tools\bin\sdkmanager.bat –licenses” terminal is disappearing

Omar Alkadro
Omar Alkadro
3 months ago

Thanks
I won’t forget your help!

React
React
11 months ago

Thanks

Arnab
Arnab
11 months ago

Thanks for the solution ,

Sneha
Sneha
1 year ago

it worked! Thank you.

Related Articles