Unity 3D构建几乎在最后失败了,但是在编辑器中运行良好,为什么?

发布于 2025-02-09 13:37:51 字数 256 浏览 1 评论 0 原文

为什么我的团结构建在最后一刻失败了???我可以在编辑器中运行游戏,但不会构建发行版,有人知道为什么吗? 我已经设置了密钥库,并且正在使用默认的Unity SDK和NDK。

Why my unity build is failing at the last moment??? I can run the game fine in editor but it won't build the release version, does anyone know why?
I have already setup keystore and I am using default unity sdk and ndk.

Here is the Errors I am getting

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忘年祭陌 2025-02-16 13:37:51

您有4个错误,并且可以在下面的链接中看到他们的解决方案:

尝试一个彼此解决,因为也许第一个问题会导致所有其他问题。

for-date:

UnityLibrary:firebaseapp.androidlib: prebuild 错误:主要版本52比51新版本:解决方案2

CommandInvokationFailure:Gradle Build失败:

unityEngine.guiutility:processEvent(int32,intptr):解决方案4

希望它有帮助!

you have 4 errors and you can see their solutions in the links below:

Try to solve it one after another because maybe the first problem leads to all other problems.

unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE : Solution 1

Compiling Error: Major Version 52 is newer than 51 : Solution 2

CommandInvokationFailure: Gradle build failed : Solution 3

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) : Solution 4

Hope it helps!

月朦胧 2025-02-16 13:37:51

我注意到,在完整的路径中拥有任何特殊字符,导致Unity Project文件夹的所有特殊字符都会在每次最终崩溃。

项目将在Unity编辑器中没有错误的情况下运行,但是如果路径名中存在EG逗号,则会不断崩溃。

在这种情况下,有一条类似的道路:

Homefolder/Create with code, name/ProjectFolder

不断崩溃。

更改路径:

Homefolder/Create_with_code_name/ProjectFolder

解决了问题。

值得注意的是, ProjectFolder 本身没有任何特殊字符,而是导致该文件夹的文件夹。

I noticed that having any special characters in the full path that leads to Unity project folder will crash Unity WebGL build at the end every time.

Project will run without errors in the Unity Editor, but crash constantly if there is e.g. comma in the path name.

In this case there was a path like:

Homefolder/Create with code, name/ProjectFolder

which kept crashing constantly.

Changing the path to this:

Homefolder/Create_with_code_name/ProjectFolder

solved the issue.

What is notable that the ProjectFolder itself didn't have any special characters in it but the folder that lead to this folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文