Quando executo o seguinte comando:
cordova run android --device
Essa é a saída do Prompt:
ANDROID_HOME=C:\DesenvolvimentoDeSistemas\android\android-sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_91
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:/C:/Users/Scaners/GoogleDrive/EstudoMobiledaAlura/garconapp/platforms/android/libs/
Required by: :android:unspecified
BUILD FAILED
Tentei remover e instalar a plataforma android mas infelizmente não adiantou. No browser a aplicação está funcionando, no android dá erro de build, porém se eu remover o plugin barcodescanner funciona normalmente. Segue minha lista de plataformas e plugins para mais informações:
Installed platforms:
android 5.1.1
browser 4.1.0
Plugins:
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-vibration 2.1.1 "Vibration"
cordova-plugin-whitelist 1.2.2 "Whitelist"
phonegap-plugin-barcodescanner 5.0.0 "BarcodeScanner"