FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output
What do I do in such situation?
If opening SDK Manager in Android Studio:
Open the Android SDK Manager.
Click the "SDK Tools" tab and check the "Show Package Details" checkbox at the bottom right of the screen.
Check the 23.0.1 option under "Android SDK Build-Tools".
Click "Apply". You should be prompted with a license agreement. Accept the license and you're done.
Try rerunning your react-native app.
If not using Android Studio:
Open SDK Manager in your Android SDK Folder (possibly in tools or platform-tools folder)
Check the box next to "Android SDK Build-tools" where the version number is 23.0.1.
Click "Install 1 package" (it may be a different number. Uncheck other boxes if you don't want to install/update anything else)
You should be presented with a license agreement sometime. Accept it and let the SDK Manager install the stuff for you.
Try rerunning your react-native app.
Try to run:
$ANDROID_HOME/tools/bin/sdkmanager --licenses
That should follow you to accepting all necessary licenses
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With