3

Trying to react-native run-android but got this:

You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1].

All licenses have been accepted with sdkmanager --licenses. How do I fix this?


Solution: Deleted /Users/WHATEVER-YOUR-NAME-IS/Library/Android, then reinstalled all SDKs through Android Studio's SDK Manager.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Ray Lee
  • 319
  • 1
  • 4
  • 13

2 Answers2

6

Go to Your-Sdk-home-Directory/tools/bin

sdkmanager --licenses

Accept the licences pending.

If still doesn't work, try installin the 23.0.1 or which it is asking for Go to Your-Sdk-home-Directory/tools

android update sdk --no-ui --all --filter build-tools-23.0.1,android-23,extra-android-m2repository

That worked for me..

if it's still giving any issues. Give a try with -keeping the licences folder in both sdk home directory and tools/bin directory

-run

sdkmanager "build-tools;23.0.1"
Sarat Chandra
  • 5,636
  • 34
  • 30
0

If you have Android Studio installed, open Tools -> SDK Manager, enable the checkbox with the desired version, accept the lisence agreement and install.

Liam Kernighan
  • 2,335
  • 1
  • 21
  • 24