Unity发布APK错误:CommandInvokationFailure: Unable to convert classes into dex format.

这里写图片描述

 1.将可以正常打包的Unity版本下的gradle复制到目标Unity下(

D:\Program Files\Unity2017.3.1f1\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle)

Unity发布APK错误:CommandInvokationFailure: Unable to convert classes into dex format._第1张图片

2.在Player Settings中将Build System选择Gradle

Unity发布APK错误:CommandInvokationFailure: Unable to convert classes into dex format._第2张图片

常见错误1

1.项目路径不要有中文路径

Unity发布APK错误:CommandInvokationFailure: Unable to convert classes into dex format._第3张图片

2.需要升级 Gradle

Unity发布APK错误:CommandInvokationFailure: Unable to convert classes into dex format._第4张图片

你可能感兴趣的:(Unity,unity,Android,错误,gradle)