主要报错:
> Using multiple versions of the Android Gradle plugin in the same build is not allowed.
意思就是:在同一个版本中使用多个版本的Android Gradle插件是不允许的
定位:
unity 中Gradle版本问题
解决:
项目中存在Gradle版本的文件
launcherTemplate
mainTemplate
找到类似以下代码
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.3'
**BUILD_SCRIPT_DEPS**}
如果没有就加上
如图
保证两个文件中的版本号(3.4.3)一致即可