- May 2, 2018 at 5:57 am #11333
Getting the below error on running
ionic cordova build –release android
* What went wrong:
A problem occurred configuring project ‘:CordovaLib’.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 26].
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
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
at ChildProcess.whenDone (C:\Users\Administrator\learn\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:12576) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:12576) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.May 2, 2018 at 8:19 am #11341
Well this is an issue with cordova setup and android studio itself .
to resolve please refer : https://stackoverflow.com/questions/40383323/cant-accept-license-agreement-android-sdk-platform-24/40383457
- You must be logged in to reply to this topic.