1
resposta

Problema com SDK

o projeto estava rodando normalmente, ate colocar o plugin que foi solicitado na video aula para ler qrcode.

ai apareceu esse erro, por favor me ajude urgente

D:\Codigos\Alura\cordova\garconapp
λ cordova run android
ANDROID_HOME=D:\Program Files\Android
JAVA_HOME=D:\Program Files\Java\jdk1.8.0_121
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.


BUILD FAILED

Total time: 11.796 secs
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.
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.
1 resposta

Jhones, tente abrir o SDK manager e ver se aparece algo.

Está claro no erro que algum pacote do SDK foi instalado sem aceitar os termos de uso.

Acho difícil que isso tenha ocorrido unicamente por conta do plugin.

Em ultimo caso, tente remover os itens descritos no erro e reinstalar pelo SDK manager.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software