首页 > 解决方案 > 统一构建时的多个版本的 gradle 插件

问题描述

我正在使用 Skillz sdk 开发一个需要 gradle 的问答游戏。我当前的统一版本是2019.3.0.a5. 当我构建项目时,出现以下错误。

   > Failed to apply plugin [id 'com.android.library']
      > Using multiple versions of the Android Gradle plugin in the same build is 
        not allowed.    
           'C:\Users\Zachary Edgell\cash quiz\Temp\gradleOut\launcher' is using 
            version 3.2.0

           'C:\Users\Zachary Edgell\cash quiz\Temp\gradleOut\unityLibrary' is 
            using version 3.2.1

2019.1.8f1当我尝试再次构建时,我试图将等级降为统一,但出现错误

FileNotFoundException: Temp\gradleOut\build\outputs\apk\release\gradleOut-release.apk does not exist

当我尝试进行开发构建时,2019.1.8f1出现以下错误

FileNotFoundException:Temp\gradleOut\build\outputs\apk\release\gradleOut-debug.apk does not exist

我也试图删除temp文件夹并重建,但我得到了同样的错误。

标签: unity3dandroid-gradle-pluginbuild.gradle

解决方案


如果有人遇到此问题,请通过降级到统一解决2018.4.3f1问题,只需备份您的文件,然后尝试降级到统一2018.4.3f1


推荐阅读