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

Erro ao tentar compilar pelo android

Professor quando tento inserir o seguinte código

cordova run android --device

da o seguinte erro:

ANDROID_HOME=/home/erick/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle 
in your path, or install Android Studio
3 respostas

Tentei instalar o Gradle usando o comando

sudo apt-get install gradle

até pareceu que ia rodar, mas ele deu o seguinte erro

Error: /home/erick/Documentos/cordova/garconapp/platforms/android/gradlew: 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 SDK Platform 25].
  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.

Parece que deu algum problema na instalação do SDK (o Android SDK Platform 25). Tenta instalar ele novamente pela ferramenta do Android

solução!

Professor conseguir instalando o android studio direto junto com sdk! Ae funcionou de boa. Obrigado pelo feedback