I have installed Cordova Tools for Visual Studio 2017. Running it in browser emulation works fine, but when I try to build an APK, it fails with the following error message:
Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. Warning: 'keystore' and 'alias' need to be specified to generate a signed archive. Validation (CSS 4.0): "cover" is not a valid value for the "background" property. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Picked up _JAVA_OPTIONS: -Xmx512M FAILURE: Build failed with an exception. FAILURE: Build failed with an exception. Error: cmd: Command failed with exit code 1 Error output: A problem occurred configuring root project 'android'. A problem occurred configuring root project 'android'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve all dependencies for configuration ':classpath'. * What went wrong: * What went wrong: * Try: * Try: Required by: Required by: > Received fatal alert: protocol_version > Received fatal alert: protocol_version > Could not resolve com.android.tools.build:gradle:2.1.0. > Could not resolve com.android.tools.build:gradle:2.1.0. > Could not resolve com.android.tools.build:gradle:2.1.0. > Could not resolve com.android.tools.build:gradle:2.1.0. > Could not resolve com.android.tools.build:gradle:2.1.0. > Could not resolve com.android.tools.build:gradle:2.1.0. > Could not get resource 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Could not get resource 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'. > Connection reset > Connection reset :android:unspecified :
android:unspecified