在Unity打包成安卓时共出现两个错误
第一个:CommandInvokationFailure: Gradle build failed.
D:/Program Files/Java/jdk1.8.0_60\bin\java.exe -classpath “D:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “assembleRelease”
在查看了众多大牛的博客之后,找到了解决方法:Unity编辑器 File->Build Setting->Android->Build System下选择Internal
第二个问题:全部错误提示没来得及截图,提示关键词是:Android TV
解决方法:Build Setting->PlayerSettings->Other Settings->Android TV Compatibility后面的勾取消