Unity build failed to run on android 34 (Split binary and app bundle) Unity 2021.3.12f1

There seem a major issue with android 34 and Split binary and app bundle build.

We been trying lately to target android 14 on pixel and all supported devices but it always result in this issue once download from the play store that failed and crash the game on this android 14 support devices.

2023/10/24 14:46:49.692 24105 24199 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023/10/24 14:46:49.692 24105 24199 Error CRASH Version '2021.3.12f1 (8af3c3e441b1)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2023/10/24 14:46:49.692 24105 24199 Error CRASH Build fingerprint: 'google/oriole/oriole:14/UP1A.231005.007/10754064:user/release-keys'
2023/10/24 14:46:49.692 24105 24199 Error CRASH Revision: 'MP1.0'
2023/10/24 14:46:49.692 24105 24199 Error CRASH ABI: 'arm64'
2023/10/24 14:46:49.692 24105 24199 Error CRASH Timestamp: 2023-10-24 14:46:49+0300
2023/10/24 14:46:49.692 24105 24199 Error CRASH pid: 24105, tid: 24199, name: UnityMain  >>> com.xxxxx.xxxx.xxxx <<<
2023/10/24 14:46:49.692 24105 24199 Error CRASH uid: 10370
2023/10/24 14:46:49.692 24105 24199 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2023/10/24 14:46:49.692 24105 24199 Error CRASH Cause: null pointer dereference
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x0  0000000000000000  x1  0000000000000010  x2  0000000000000010  x3  000000000000000c
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x4  0000000000000000  x5  0000006c629065fd  x6  0000000000000000  x7  0000006cf9a99de7
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x8  0000006c3000f340  x9  0000000000000508  x10 0000000000000000  x11 0000000000000000
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x12 000000000000052d  x13 0000000000000000  x14 000000000000052c  x15 0000013e5c719621
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x16 0000006c62c5aff8  x17 0000006fb9318900  x18 0000006c60f76000  x19 0000006bd003ca20
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x20 0000006c637af890  x21 0000000000000000  x22 0000006c637afa00  x23 0000000000000001
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x24 b400006edb339080  x25 0000000000000000  x26 0000000000000018  x27 0000006c637afe40
2023/10/24 14:46:49.692 24105 24199 Error CRASH     x28 0000006c629a91d5  x29 0000000000000049
2023/10/24 14:46:49.692 24105 24199 Error CRASH     sp  0000006c637af720  lr  0000006c61def204  pc  0000006fb9318910
2023/10/24 14:46:49.692 24105 24199 Error CRASH backtrace:
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #00 pc 0000000000055910  /apex/com.android.runtime/lib64/bionic/libc.so (__strlen_aarch64+16) (BuildId: 19c32900d9d702c303d2b4164fbba76c)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #01 pc 00000000003b9200  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #02 pc 00000000003bc470  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #03 pc 00000000003a9538  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #04 pc 00000000003aaca8  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #05 pc 00000000003c1580  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #06 pc 000000000034dc30  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #07 pc 00000000005d0530  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #08 pc 00000000005cf5b4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
2023/10/24 14:46:49.692 24105 24199 Error CRASH       #09 pc 00000000009e66dc  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat
2023/10/24 14:46:49.701 620 18031 Warn gralloc4 Unable to set buffer name VRI[Knight]#431(BLAST Consumer)431: File name too long
2023/10/24 14:46:49.713 620 18031 Warn gralloc4 Unable to set buffer name VRI[Knight]#431(BLAST Consumer)431: File name too long
2023/10/24 14:46:49.743 24105 24199 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.xxxxxx.xxxxx.xxxx/files/tombstone_02
0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of crash
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime FATAL EXCEPTION: UnityMain
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Process: com.xxxxxx.xxxxx.xxxx, PID: 24105
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Version '2021.3.12f1 (8af3c3e441b1)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Build fingerprint: 'google/oriole/oriole:14/UP1A.231005.007/10754064:user/release-keys'
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Revision: 'MP1.0'
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime ABI: 'arm64'
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Timestamp: 2023-10-24 14:46:49+0300
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime pid: 24105, tid: 24199, name: UnityMain  >>> com.xxxxxx.xxxxx.xxxx <<<
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime uid: 10370
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime Cause: null pointer dereference
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x0  0000000000000000  x1  0000000000000010  x2  0000000000000010  x3  000000000000000c
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x4  0000000000000000  x5  0000006c629065fd  x6  0000000000000000  x7  0000006cf9a99de7
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x8  0000006c3000f340  x9  0000000000000508  x10 0000000000000000  x11 0000000000000000
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x12 000000000000052d  x13 0000000000000000  x14 000000000000052c  x15 0000013e5c719621
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x16 0000006c62c5aff8  x17 0000006fb9318900  x18 0000006c60f76000  x19 0000006bd003ca20
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x20 0000006c637af890  x21 0000000000000000  x22 0000006c637afa00  x23 0000000000000001
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x24 b400006edb339080  x25 0000000000000000  x26 0000000000000018  x27 0000006c637afe40
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     x28 0000006c629a91d5  x29 0000000000000049
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     sp  0000006c637af720  lr  0000006c61def204  pc  0000006fb9318910
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime 
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime backtrace:
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #00 pc 0000000000055910  /apex/com.android.runtime/lib64/bionic/libc.so (__strlen_aarch64+16) (BuildId: 19c32900d9d702c303d2b4164fbba76c)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #01 pc 00000000003b9200  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #02 pc 00000000003bc470  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #03 pc 00000000003a9538  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #04 pc 00000000003aaca8  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #05 pc 00000000003c1580  /data/app/~~HXjnGZWqdm2hVeWuxPKgbA==/com.xxxxxx.xxxxx.xxxx-6M7C6KuMsAl5C9dFbE1d8g==/lib/arm64/libunity.so (BuildId: 574dc2e91b1a23049661f330bd8e8bbf2187a41c)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #06 pc 000000000034dc30  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #07 pc 00000000005d0530  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #08 pc 00000000005cf5b4  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: a5fcf27f4a71b07dff05c648ad58e3cd)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime       #09 pc 00000000009e66dc  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime 
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libc.__strlen_aarch64(__strlen_aarch64:16)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3b9200(Native Method)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3bc470(Native Method)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3a9538(Native Method)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3aaca8(Native Method)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libunity.0x3c1580(Native Method)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libart.art_quick_generic_jni_trampoline(art_quick_generic_jni_trampoline:144)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libart.nterp_helper(nterp_helper:4016)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at libart.nterp_helper(nterp_helper:52)
2023/10/24 14:46:49.744 24105 24199 Error AndroidRuntime     at boot.0x9e66dc(Native Method)

I tried the following methods :
-Updating the billing to latest.
-Updating firebase to latest.
-Upgrade version from 2021 to 2022.

Nothing so far is working and it seem it only affect android 14, cause all other older android version devices able to successful build and run the game on their android from play store.

I want to point out, that is the apk without splitting and the app bundle does work without any issues on android studio android 14 AVD.

If someone aware of a fix or if it bug, please tell me

After few more testing, it confirming normal .apk without spit binary does work well on android 14 without crash but app bundle with split binary from google play will always crash with above error

I guess there no updates or anyone aware of this issue

So I guess we going to be stuck with problem forever ? can we have any update from unity team ?

I’m not sure this is work for you, please take a look of this
Crash log from the Google Play page-2

We never used optimize frame pacing, actually it already disabled in the build form long ago :frowning:

It’s caused by the plugin com.google.android.play:asset-delivery.
In the version before 2.0.2, a certain careless programmer wrote this bull sh*t:

And guys from Google fixed it one month after the first developer preview of Android 14, in asset-delivery version 2.0.2.

1 Like

Thank you for your explanation, I have run into this exact same problem, with the same setting and Unity version. I just want to confirm; does this mean we should either 1) disable Split Binary or 2) upgrade Unity Engine to a version where it is not using com.google.android.play:asset-delivery 2.0.2?

(I am sorry if I misunderstood. My understanding is that Unity is using com.google.android.play:asset-delivery plugin to split the binary. Is this correct?)

I am in the same situation. I’m using Unity 2020 for this project. Is there a way to fix it?