Problem with SDK license when running Cordova project

Asked

Viewed 831 times

0

I went to run a project Android with Cordova but it gave a license error and I can’t fix, it was working normal until I add a plugin to qrcode.

Error: cmd: Command failed with Exit code 1 Error output: FAILURE: Build failed with an Exception.

  • What Went Wrong: A problem occurred Configuring root project 'android'.

You have not accepted the License Agreements of the following SDK Components: [Android Support Repository]. 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.
  • Voce must have an android SDK installed there, updates it via command line, something like TUAPASTASDK/tools/bin/sdkmanager

  • I don’t know if it helps you, but I was having this problem too, I had to install an earlier version of sdk(25) after that worked. I was able to build on Cordova.

1 answer

1

This error occurs because you did not accept the license terms to use Android SDK

To solve just re-install the Android Support Repository or the SDK version that he will ask to accept the terms again.

Updating

You can also do as you are reply given in the question: Help with React Activate, as commented by @Guilhermenascimento

  • >>> Or instead of reinstalling https://answall.com/a/206708/3635 ? (sdkmanager --licenses)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.