Unity3D:CommandInvokationFailure: Gradle build failed.

问题:

CommandInvokationFailure: Gradle build failed. 

C:\ProgramFiles\Java\jdk1.8.0_131\bin\java.exe-classpath "D:\unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"


解决办法:

将下图中红色的框中的选项改为  Internal

Unity3D:CommandInvokationFailure: Gradle build failed._第1张图片

修改之后

Unity3D:CommandInvokationFailure: Gradle build failed._第2张图片

直接build,就可以生成.apk


转载自:https://blog.csdn.net/qq_37174705/article/details/79825157

你可能感兴趣的:(Unity3D:CommandInvokationFailure: Gradle build failed.)