小编Hen*_*der的帖子

如何修复 Unity 上的“Gradle Build Failed”?

我正在尝试构建我的 Android 应用程序一段时间,但似乎找不到此问题的任何解决方案: Image

Unity版本:Unity 2020.3.21f1(64位) 使用的JDK、SDK、NDK和Gradle都是Unity推荐的(已经尝试使用其他的)。

控制台详细信息在这里:

Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)`

    FAILURE: Build failed with an exception.

    * What went wrong:
    com/sun/istack/FinalArrayList
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full …
Run Code Online (Sandbox Code Playgroud)

c# build unity-game-engine gradle build.gradle

8
推荐指数
1
解决办法
7万
查看次数

标签 统计

build ×1

build.gradle ×1

c# ×1

gradle ×1

unity-game-engine ×1