You may need to continue to copy license files to other storage locations depending on the installation. I just installed this problem these components in „Android 7.0 (API 24)“: SDK platform Google Apis Sources for Android SDK Alternately, if you run flatter doctor, it will run the Android tool diagnosis that shows how many licenses are not yet accepted, and offers you to make it work with the option -Android license. Problem is still here with circleci/android:api-28. @smitthakkar96 These licenses should have already been downloaded from the android-sdk-home/licenses directory. Open the „sdkmanager.bat –update“ via the command line, then select „Y,“ enter and wait until the end. For example, I use the command line to enter the directory: „E:`android sdk_r24.4.1-windows-sdk-windows-tools`bin“ and then I type: sdkmanager.bat -update None of the above solutions worked for me and finally this unique line accepted all Android licenses. My circleCI set up for Android has been working successfully for a few weeks, but suddenly today all builds fail with the following: If someone is still facing the problem, then please follow the link to the solution aboutreact.com/you-have-not-accepted-the-license-agreements-of-the-following-sdk-components/ it will ask you to accept whatever agreements are always accepted. All you have to do is „get in“ and enter. For me, I built the Ionic with „ionic build Android“ command and I had the same problem! The solution was simply that you can solve this. Please open the platforms/Android in Android Studio. Subsequently, the same error in the building log is displayed as an error. You will find the link to the lack of agreement.
You can simply click on it to download it and accept it. | sdkmanager –update that accepts licenses for the sdkmanager manager himself, then from July 2019 is the easiest method to use: flatter doctor –android-licenses in the command prompt. Maybe you have two Android SDKs on your computer. Be sure to check both that they have both the „Library/Android/Sdk“ file and /usr/local/share/android-sdk! If you`re not sure, completely uninstall Android Studio from your computer and start with a clean slate. Check the Googley package license in /usr/local/Caskroom/android-sdk/3859397,26.0.1/licenses Warning: The Google Repository package license is not accepted. One day, he`ll ask you for a license agreement, press it. Then you have to remove the angle platform. Maybe I`m late, but this helped me accept SDK licenses for OSX, I found the solution because there are two missing packages called Google Repository and Android Repository. You can go to Android sdk Manager of android sdk command and browse to extra folders there you can select both packages and install them. The problem is solved. Then I had a list of 6 licenses to accept and I solved hers afterwards.