If someone is still facing the problem, please follow the link for the solution aboutreact.com/you-have-not-accepted-the-license-agreements-of-the-following-sdk-components/ NB: This resulted in the immediate acceptance of the SDK license and the version worked from there. I solved the problem by checking the android-sdk-licenses file in the installed ANdroid path for ex my path G:Androidsdklicenses with the same file in this directory C:UsersAshutoshAppDataLocalAndroidSdklicenses, copy all licenses if multiple 🙂 echo |set /p=”8933bad161af4178b1185d1a37fbf41ea5269c55″ > “%ANDROID_HOME%licensesandroid-sdk-license” First, make sure that the latest Android SDK is installed. Second, make sure ANDROID_HOME is set. (Echo $ANDROID_HOME) To learn how to transfer license agreements from one workstation to another, go to d.android.com/r/studio-ui/export-licenses.html See forum.ionicframework.com/t/you-have-not-accepted-the-license-agreements-of-the-following-sdk-component/69570/3 or reply to this email to respond. Install sdk 25 and accept the Android Studio license. That solved my problems. My circleCI configuration for Android has been working successfully for a few weeks, but suddenly today all versions fail with the following: In fact, you can simply go to cmd where you installed SDK and run cd to tools/bin in exmaple: ./sdkmanager “platforms;android-26” and accept the license with y @smitthakkar96 These licenses should have already been downloaded to the android-sdk-home/licenses directory. See this page for a detailed description: cordova-android-support-gradle-release I had the same problem and used @peters. Wang responded to generate the license and save the license folder to the SDK folder. If you are not using Android Studio, you must do the following: #1726 (Comment) BUILD FAILED in 2s [ERROR] An error occurred while running the cordova sub-process. cordova run android –device exited with exit code 1. You have not accepted the license agreements for the following SDK components: In this case, you must install [Android SDK Platform 24]. in fact, the help text in parentheses  takes you in the right direction.
Thanks guys, it worked. But in my env sdkmanager –update fails. So here`s my quick hack workaround. – Run: yes| sdkmanager –licenses – run: yes | sdkmanager –update || exit 0 This issue can occur if you have installed the SDK but have not accepted the license agreement. To resolve this issue, simply accept the terms of the SDK component. To accept the terms and conditions, you can use an sdkmanager command-line tool. You can solve the problem in 2 steps: Before building your project, you must accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. The problem occurs when some of your Android modules need to be compiled using an SDK other than the main image (in this case, 28).
Licenses are not signed. There was another question about un accepted license agreements, but I think there was a comment from Phonegap employees that they are now accepted, so they may have missed this one. Yes| sdkmanager –licenses && yes | sdkmanager –update You have not accepted the license agreements for the following SDK components: [Android SDK Platform 25]. Before you build your project, you must accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to find out how to transfer license agreements from one workstation to another, go to d.android.com/r/studio-ui/export-licenses.html check Google APIs 23.0.1 in Android Studio accept all licenses with sdkmanager –license I fixed this issue, only these components installed in “Android 7.0 (API 24)”: Google Apis Sources SDK Platform for Android SDK @gbrits I still get the following error after installing the latest SDKs. . .