Visual Studio Cordova项目的发布版本错误

时间:2016-08-16 14:54:55

标签: android-gradle visual-studio-cordova

我正在使用visual studio 2015更新3和TACO Update 10.一切正常,但从昨天起我无法为Android制作发布版本。我重新安装了机器上几乎所有东西,问题仍在继续。该错误与gradle守护程序有关。构建输出的相关部分是:

Starting a new Gradle Daemon for this build (subsequent builds will be faster).
1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1>MSBUILD : cordova-build error : * What went wrong:
**1>MSBUILD : cordova-build error : Unable to start the daemon process.**
1>MSBUILD : cordova-build error : This problem might be caused by incorrect configuration of the daemon.
1>MSBUILD : cordova-build error : For example, an unrecognized jvm option is used.
1>MSBUILD : cordova-build error : Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.13/userguide/gradle_daemon.html
1>MSBUILD : cordova-build error : Please read the following process output to find out more:
1>MSBUILD : cordova-build error : -----------------------
**1>MSBUILD : cordova-build error : java.lang.IllegalArgumentException: URI has an authority component**
1>MSBUILD : cordova-build error :  at java.io.File.<init>(File.java:423)
1>MSBUILD : cordova-build error :  at org.gradle.internal.classloader.ClasspathUtil.getClasspathForClass(ClasspathUtil.java:68)
1>MSBUILD : cordova-build error :  at org.gradle.internal.installation.CurrentGradleInstallationLocator.findDistDir(CurrentGradleInstallationLocator.java:54)
1>MSBUILD : cordova-build error :  at org.gradle.internal.installation.CurrentGradleInstallationLocator.locateViaClass(CurrentGradleInstallationLocator.java:45)
1>MSBUILD : cordova-build error :  at org.gradle.internal.installation.CurrentGradleInstallationLocator.locateViaClassLoader(CurrentGradleInstallationLocator.java:41)
1>MSBUILD : cordova-build error :  at org.gradle.internal.installation.CurrentGradleInstallationLocator.locate(CurrentGradleInstallationLocator.java:31)
1>MSBUILD : cordova-build error :  at org.gradle.internal.installation.CurrentGradleInstallation.locate(CurrentGradleInstallation.java:46)
1>MSBUILD : cordova-build error :  at org.gradle.internal.installation.CurrentGradleInstallation.get(CurrentGradleInstallation.java:41)
1>MSBUILD : cordova-build error :  at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:45)
1>MSBUILD : cordova-build error :  at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
1>MSBUILD : cordova-build error :  at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)
1>MSBUILD : cordova-build error : Picked up _JAVA_OPTIONS: -Xmx512M

1 个答案:

答案 0 :(得分:0)

强制VS TACO使用最新版本的JAVA JDK解决了这个问题。