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

Erro de compilação no cordova

Olá, quando dou o comando cordova run android recebo o seguinte erro:

ANDROID_HOME=/home/roberto/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
No target specified, deploying to device 'LGHxxxxxxxxxx'.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.android.support:support-v4:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
         https://repo1.maven.org/maven2/com/android/support/support-v4/
         https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
         https://jcenter.bintray.com/com/android/support/support-v4/
         file:/home/roberto/mobile/garconapp/platforms/android/libs/
     Required by:
         :android:unspecified

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.855 secs
Error: Error code 1 for command: /home/roberto/mobile/garconapp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/roberto/mobile/garconapp/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

alguem pode ajudar.

2 respostas

Opa, tenta por favor remover e depois adicionar a plataforma android novamente (assim ele regera tudo). Aí faz o build de novo.

Se ainda não for, tenta remover o plugin do barcode e ver se funciona. Estamos desconfiando que a ultima versao do plugin está com algum problema. Outra sugestão é tentar usar uma versão anterior do plugin

solução!

instalei barcodeScanner e removi a plataforma android e instalei novamente e funcionou.

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