【发布时间】: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 重新安装了,但仍然是同样的错误,或者我做错了。如果您对此错误有所了解,那么欢迎您提供任何帮助。
【问题讨论】: