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

Erro cordovalib

Bom dia,

Travei na parte da criação do ambiente android, já instalei o android studio, atualizei licenças, já fui no variaveis de ambiente mas travou neste erro no build.gradle line 40, alquem teria alguma iluminação...

C:\Users\Andressa Caldeira\Desktop\Anderson\Estudo programação\cordova\garconapp>cordova run android --device
Android Studio project detected
ANDROID_HOME=C:\Users\Andressa Caldeira\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Andressa Caldeira\Desktop\Anderson\Estudo programa��o\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 1s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Andressa Caldeira\Desktop\Anderson\Estudo programa��o\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 1s
6 respostas
solução!

Oi Anderson, tudo bem? Me parece que o problema todo está no nome da pasta onde está seu projeto. O erro diz: Your project path contains non-ASCII characters, ou seja, você não pode ter caracteres com acentos no PATH do projeto e o nome da pasta é: Estudo programação. Troca o nome da pasta e tenta novamente pra ver se funciona?

Serio??? Vou verificar e já mando um feedback...

Deu certo Anderson? Era isso mesmo?

Oi Wanderson, desculpa pela demora em responder, apareceu outro erro, vou fazer deletar toda a pasta e fazer o procedimento do zero para ver se vai.

Certo, me confirma aqui depois?

Apaguei tudo, baixei o projeto pronto na aula, mudei de lugar e mudei os nomes mas continua com erro, liberei a depuração e a instalação das fontes desconhecidas.

C:\Anderson\Estudo-programacao\cordova\garconapp>cordova run android --device
Android Studio project detected
ANDROID_HOME=C:\Users\Andressa Caldeira\AppData\Local\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 30s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)
publishNonDefault is deprecated and has no effect anymore. All variants are now published.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

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

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

* 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 33s

C:\Anderson\Estudo-programacao\cordova\garconapp>

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