Reputation: 91
I have the next problem, i am tryng to run my app with react-native. can you help me please
Upvotes: 3
Views: 2653
Reputation: 1425
Try this way
go to the path of ur android-sdk\tools
C:\Users\USER\AppData\Local\Android\android-sdk\tools
then run below command
.\android update sdk --no-ui --all --filter build-tools-xx.x.x,android-xx,extra-android-m2repository
it will install with accepted the license agreements
according to your problem build-tools-xx.x.x is 23.0.1 and android-xx is 23
Upvotes: 3
Reputation: 5667
This worked for me (on Windows):
Navigate to: C:\Program Files (x86)\Android\android-sdk\tools
Right-click android.bat
and Open as Administrator.
You can now manually install and accept the license agreement for Android SDK Build-tools 23.0.01.
If it complains about [Android Support Repository]
or any other package then simply repeat the process for that package. Cheers.
Upvotes: 1
Reputation: 9978
Open a command prompt, go to your Android SDK folder and execute: sdkmanager.bat --licenses
It will prompt you to accept the licenses you haven't.
PS. Please make a Google search before posting, this has been widely answered.
Upvotes: 3