gpt4 book ai didi

unity-game-engine - Unity 游戏在 Android 8 上开始崩溃

转载 作者:行者123 更新时间:2023-12-02 02:43:06 28 4
gpt4 key购买 nike

从 Android Vitals 获取以下堆栈跟踪:

java.lang.Error: FATAL EXCEPTION [main]
Unity version : 5.6.2f1
Device model : samsung SM-G955F
Device fingerprint: samsung/dream2ltexx/dream2lte:8.0.0/*****/***********B7:user/release-keys
Caused by
at bitter.jnibridge.JNIBridge.invoke (Native Method)
at bitter.jnibridge.JNIBridge$a.invoke (Unknown Source:20)
at java.lang.reflect.Proxy.invoke (Proxy.java:913)
at $Proxy1.onBindingDied (Unknown Source)
at android.app.LoadedApk$ServiceDispatcher.doConnected (LoadedApk.java:1652)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run (LoadedApk.java:1685)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)

没有任何线索。欢迎任何帮助或解释。

最佳答案

我们在大部分玩家群体中发现了同样的错误。我们能够联系 Unity 并深入了解该错误。

来自 Unity 企业支持:

We are aware of the issue. We fixed it in 2017.3 after upgrading the JNIbridge to support Oreo APIs. Previous reports describe that when a Unity application that has INTERNET permission is running, and the Google play services is updated, stopped or reboot, it will cause the app to crash in Android 8, 8.1 devices.

The problem is that ServiceConnection.onBindingDied which was added in API level 26 is not implemented before 2017.3; we added this for GoogleAdsServiceConnection in such version an also updated the JNIbridge to solve the problem.

I'm able to reproduce it in an empty project by setting Internet Access to "Require" and when running on the device, go to settings ->Apps & notifications->google play services->storage->MANAGE SPACE->CLEAR ALL DATA, then the app crashes as described in Stack Overflow.

Do you have plans to upgrade your project to 2017.4 LTS?

I'm asking because we think that a backport of the fix is not feasible, not only because it would be for a version for which we no longer create patches (5.6.x) but an appropriate fix would involve backporting the full support for Oreo APIs which might be tricky and may cause regressions.

我们决定尝试将 Unity 版本从 5.6.4f1 升级到推荐的 2017 版本。听起来它应该可以解决我们的问题。

关于unity-game-engine - Unity 游戏在 Android 8 上开始崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50469582/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com