统一构建时 gradle 插件的多个版本
multiple versions of gradle plugin when building in unity
我正在使用 skillz sdk 开发一个需要 gradle 的问答游戏。我当前的 unity 版本是 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
文件夹并重建,但我遇到了同样的错误。
通过降级到 unity 2018.4.3f1
解决了问题 2018.4.3f1
如果有人遇到这个问题,请备份您的文件然后尝试降级到 unity 2018.4.3f1
我正在使用 skillz sdk 开发一个需要 gradle 的问答游戏。我当前的 unity 版本是 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
文件夹并重建,但我遇到了同样的错误。
通过降级到 unity 2018.4.3f1
解决了问题 2018.4.3f1
如果有人遇到这个问题,请备份您的文件然后尝试降级到 unity 2018.4.3f1