If anyone is still facing the problem, please follow the link to the solution aboutreact.com/you-have-not-accepted-the-license-agreements-of-the-following-sdk-components/ I solved this problem by creating a public repo git with the license files accepted. Then I use wget to retrieve these licenses on any computer I need in a [sdk-dir]/licenses directory before running ./ gradlew to create my project. A problem arose when setting up the `:app` project. Error when installing the following Android SDK packages, as some licenses have not been accepted. Platforms; Android-27 Android SDK Platform 27 To create this project, accept SDK licensing agreements and install the missing components with the Android Studio SDK Manager. Alternatively, to transfer the licensing agreements from one workstation to another, see I have the following error when creating on Android: 📝 If the ANDROID_HOME environment variable is not fixed, take a look at this guide: spring.io/guides/gs/android/#android-dev-env I also have this problem today. Please help me if you have solved this problem. Thanks have I added this: E:.android sdk_r24.4.1-windows-sdk-windows tools; E:-android-sdk_r24.4.1-windows-sdk windows-platform-tools millions of developers and companies build, send and expect their software on GitHub – the largest and most advanced development platform in the world. Accept the license `android-sdk-license-c81a61d9` [y/n]: y after this installation successfully. The way license agreements on the order line are accepted has changed. You can use the SDK manager in: $ANDROID-SDK/ROOT/tools/bin.
It seems to be project related, the “doctor” command may not know much about the type of construction tools you indicated in your project. @aiqinxuancai Check to see if you`ve listed 27 related parameters in your project. I`m working to reproduce it locally so that I can completely unpack it. One thing I would suggest is to install SDK 27 and 27.0.3 construction tools so you can try to get a more meaningful error message – than I did in our CI, at least to tell me what dependencies have actually failed. Enter an attempt to repeat and rebuild, always give jenkins “unreased licenses”, then you must give full permission for your repertoire `sdk` and all its superior repertoires. Here`s the order: Check the Google Repository package license in /usr/local/Caskroom/android-sdk/3859397,26.0.1/licenses Warning: The Google Repository package license is not accepted. The above answer didn`t work on the windows, but this: This is much more flexible and requires zero manual intervention. The 30 number is arbitrary, should be enough to cover the number of license applications, but can be increased if necessary first race Android rm platform then add new Android platform as platform add this Android solution work in case you can only try that it can help you We found the same problem the project on Jenkins. With buildToolsVersion `25.0.2`, we have to accept licenses before creating. In our case, we had to run: @SKempin simply run $ANDROID-HOME/tools/bin/sdkmanager “platforms;android-26” and accept it.