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

Tentei rodar o projeto cordova no android mas deu erro.

Segue o erro...Ele sugere uma correção mas não entendi direito o que tenho que fazer..

C:\Users\Renan\Desktop\Curso Programação\Alura\Carreira Mobile Cordova\Projeto Mobile Cordova\garconapp>cordova run android
Android Studio project detected
ANDROID_HOME=C:\Users\Renan\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191
studio
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

BUILD SUCCESSFUL in 1m 0s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Renan\Desktop\Curso Programa��o\Alura\Carreira Mobile Cordova\Projeto Mobile Cordova\garconapp\platforms\android\CordovaLib\build.gradle' line: 40

* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> Failed to apply plugin [id 'com.android.library']
   > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

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

* Where:
Build file 'C:\Users\Renan\Desktop\Curso Programa��o\Alura\Carreira Mobile Cordova\Projeto Mobile Cordova\garconapp\platforms\android\CordovaLib\build.gradle' line: 40

* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> Failed to apply plugin [id 'com.android.library']
   > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

* 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 1m 2s
3 respostas
solução!

Oi Renan tudo certo ?

Isso acontece por que a pasta Curso Programação do caminho do seu projeto está com acento.

Pode mudar o nome para CursoProgramacao e tentar novamente. O ideal é não nomear as pastas com acentos, ç ou espaços justamente por esse tipo de erro.

Obrigado Felipe! Resolveu o problema! Depois da sua resposta que percebi que na mensagem do erro já descrevia o problema..não prestei atenção..

Obrigado pela dica! Abraço!

Legal que deu certo Renan, qualquer dúvida só postar

Bons Estudos !!!

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