【问题标题】:I'm not able to build my unity project into apk我无法将我的统一项目构建成 apk
【发布时间】:2022-10-18 23:15:25
【问题描述】:

我无法将我的统一项目构建到 apk 中,每当我尝试构建它时都会抛出错误

我正在使用统一 2020.3.21

我正在使用 api 级别 31,因为我想在 playstore 上提交我的游戏更新,现在他们将 api 级别更改为 31。

错误

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with -

另一个错误

Could not determine the dependencies of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.

* 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 insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]

正如我在错误中看到的那样,提到构建工具修订版 33.0.0 已损坏我已经使用 android studio 重新安装了,但仍然是同样的错误,或者我做错了。如果您对此错误有所了解,那么欢迎您提供任何帮助。

【问题讨论】:

    标签: c# android unity3d


    【解决方案1】:

    尝试通过统一包管理器而不是 android studio 安装,因为它可能对不同的应用程序有不同的文件名

    希望这可以帮助!

    【讨论】:

    • 构建工具修订版 33.0.0在统一包管理器中不可用,它只能使用 android studio sdk 管理器安装。如果它可以使用包管理器安装,然后告诉我如何做到这一点的程序
    猜你喜欢
    • 2017-08-31
    • 1970-01-01
    • 1970-01-01
    • 2017-12-05
    • 1970-01-01
    • 2022-12-20
    • 2020-08-19
    • 2020-01-16
    • 2017-10-25
    相关资源
    最近更新 更多