繁体   English   中英

我无法将我的统一项目构建成 apk

[英]I'm not able to build my unity project into apk

我无法将我的统一项目构建到 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 工作室重新安装,但仍然是相同的错误,或者我做错了。 如果您对此错误有所了解,那么欢迎您提供任何帮助。

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

希望这可以帮助!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM