Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29445

Building react native app fails on android licenses

$
0
0

I'm diving into react native world for first time and I'm trying to setup a Windows dev environment from scratch following this article. Everything is ok until I try running react-native run-android. I've already accepted all licences with sdkmanager --licenses but I still get licences errors:

> Configure project :app
Checking the license for package Android SDK Build-Tools 27.0.3 in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android SDK Build-Tools 27.0.3 not accepted.
Checking the license for package Android SDK Platform 27 in C:\Program Files\Android\Android Studio\licenses
Warning: License for package Android SDK Platform 27 not accepted.


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     platforms;android-27 Android SDK Platform 27
     build-tools;27.0.3 Android SDK Build-Tools 27.0.3
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Then I found this comment where a user suggests the following command: $ANDROID_HOME/tools/bin/sdkmanager "build-tools;26.0.1""platforms;android-26". I executed it as sdkmanager.bat "platforms;android-27""build-tools;27.0.3" to match the versions in my env and the manager did downloaded new licences, but the errors stays.

I don't know how to accept those licences above. Any suggestion?


Viewing all articles
Browse latest Browse all 29445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>