我遇到了这个构建错误,似乎没有修复它, 我拥有的插件是Visual Studio的默认白名单, geolocation和compat与地理定位。我正在尝试为Android构建我的Cordova应用程序,我已正确填写了build.json,并且我的config.xml也已设置好。
Java :jdk1.8.0_121
1> :packageDebug FAILED
1>
1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1> FAILURE: Build failed with an exception.
1>
1>MSBUILD : cordova-build error : * What went wrong:
1> * What went wrong:
1>
1> BUILD FAILED
1>
1> Total time: 4.461 secs
1>MSBUILD : cordova-build error : A problem was found with the configuration of task ':packageDebug'.
1> A problem was found with the configuration of task ':packageDebug'.
1>MSBUILD : cordova-build error : > File 'C:\Users\billy\Documents\Visual Studio 2015\Projects\JSAPIGeolocation\JSAPIGeolocation\platforms\android\build\intermediates\res\resources-debug.ap_' specified for property 'resourceFile' does not exist.
1> > File 'C:\Users\billy\Documents\Visual Studio 2015\Projects\JSAPIGeolocation\JSAPIGeolocation\platforms\android\build\intermediates\res\resources-debug.ap_' specified for property 'resourceFile' does not exist.
1>
1>MSBUILD : cordova-build error : * Try:
1> * Try:
1>MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1>MSBUILD : cordova-build error : Error code 1 for command: cmd with args: /s,/c,""C:\Users\billy\Documents\Visual Studio 2015\Projects\JSAPIGeolocation\JSAPIGeolocation\platforms\android\gradlew" cdvBuildDebug -b "C:\Users\billy\Documents\Visual Studio 2015\Projects\JSAPIGeolocation\JSAPIGeolocation\platforms\android\build.gradle" -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
1> Error code 1 for command: cmd with args: /s,/c,""C:\Users\billy\Documents\Visual Studio 2015\Projects\JSAPIGeolocation\JSAPIGeolocation\platforms\android\gradlew" cdvBuildDebug -b "C:\Users\billy\Documents\Visual Studio 2015\Projects\JSAPIGeolocation\JSAPIGeolocation\platforms\android\build.gradle" -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========