Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

ionic cordova build android ()

Como posso resolver?

  • Try: 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 3s cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':CordovaLib'.

    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 27]. 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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s [ERROR] An error occurred while running subprocess cordova.

    cordova build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
2 respostas

Boa tarde, Lucas! Como vai?

Pelo log da mensagem de erro, aparentemente há algum problema na instalação da plataforma 27 do SDK do Android! Dê uma conferida nisso e veja se resolve o seu problema!

Qualquer coisa é só falar!

Espero que esteja aproveitando e curtindo ao máximo todo o conteúdo do curso!

Grande abraço e bons estudos, meu aluno!

solução!

Você precisa conferir se tem instalado o SDK Platform 27. O link abaixo explica como fazer isso:

https://www.androidpro.com.br/blog/android-studio/android-sdk-manager/

Se não tiver instalado, faça a instalação e tente rodar o comando novamente. Se já estiver instalado e você quiser aceitar as licenças, pode usar este comando:

%ANDROID_HOME%/tools/bin/sdkmanager --licenses

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