Unity安卓(WaveVR)打包失败:CommandInvokationFailure: Gradle build failed.

Unity安卓(WaveVR)打包失败

    • 问题出现
    • 解决方案

问题出现

在WaveVR项目打包时报错,而打包失败。报错如图:
Build failure
在控制图中也会出现报错:
Unity安卓(WaveVR)打包失败:CommandInvokationFailure: Gradle build failed._第1张图片
问题原文:

CommandInvokationFailure: Gradle build failed.
D:/Program Files/Java/jdk1.8.0_144\bin\java.exe -classpath “D:\Unity\Unity2018.1.1f1\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx2048m” “assembleRelease”

解决方案

Build Settings中的Build System的现值Gradle,改设置为Internal 即可。
如图:
Unity安卓(WaveVR)打包失败:CommandInvokationFailure: Gradle build failed._第2张图片
改为下图:
Unity安卓(WaveVR)打包失败:CommandInvokationFailure: Gradle build failed._第3张图片

你可能感兴趣的:(Unity,Android)