Search Issue Tracker

Fixed

Fixed in 2021.3.33f1, 2022.3.13f1, 2023.1.20f1, 2023.2.5f1, 2023.3.0a11, 7000.0.0a1

Votes

11

Found in

2023.3.0a4

7000.0.0a1

Issue ID

UUM-48068

Regression

No

[Android] TargetAPI 34 crash on launch

--

-

*Steps to reproduce:*
# Open the attached 1361131_windowed-trunk project
# Build the application without changing settings
# Deploy to the application to target device
# Launch the application on device
# Observe immediate crash

 - Alternatively deploy the attached APK to target device and repeat steps 4 & 5

*Expected results:* Application launches and information regarding the screen is visible alongside three rotating shapes.

*Actual results:* Crashes immediately

*Versions reproducible with:* 2023.3.0a4, 2021.3.33f1, 2022.3.14f1.

*Reproducible with:* 
- Pixel 6, CPU: Google Tensor, GPU: Mali-G78, OS: 14 beta 3.1

*Not reproducible with:*
- Samsung Tablet A(8.0" 2019), CPU: Snapdragon 429, GPU: Adreno 504, OS: 11
- Xiaomi Redmi 9A, CPU: Helio G25, GPU: PowerVR GE8320, OS: 10

  1. Resolution Note (fix version 2023.3.0a11):

    Crash was being caused on Android 14 devices on Development builds by missing EXPORTED/NOT_EXPORTED flag when registering broadcast receiver. Broadcast receiver was removed as it was unneeded and crash doesn't occur anymore.

Comments (20)

  1. Msteva

    Jul 23, 2024 11:24

    same problem for unity 2022.3.11f1
    have you found a solution?

  2. libin66

    Jul 19, 2024 02:21

    Regarding the solution for Unity2019.4.36, I decompiled the classes.jar & classes.dex in the Android installation directory, removed the "registerReceiver" related calls, and then replaced them back and put them in the installation directory.

  3. haiyaojing

    Jul 19, 2024 02:14

    LIBIN66 is 666

  4. libin66

    Jul 16, 2024 07:06

    What should I do about the 2019.4.36 version? I am not considering upgrading the Unity version for now.

  5. IyadhSi

    May 12, 2024 12:34

    Running the game on a real Android 14 device works fine (Galaxy S22 Ultra), however the game crashes on startup on an Android Studio virtual device Android 14 (API 34)

  6. IyadhSi

    May 12, 2024 11:57

    The issue still occurs in Unity 2022.328f1, Anyone got a fix so far?

  7. bbridgesvb

    Mar 14, 2024 15:36

    For anyone experiencing this issue with AR Foundation when Google Play Services for AR isn't installed, there's now a separate bug report for that: https://issuetracker.unity3d.com/issues/xr-android-crash-on-android-14-due-to-arcore-package-not-specifying-one-of-receiver-exported-or-receiver-not-exported

  8. stenfeio

    Feb 26, 2024 17:44

    Unity uses a older version of `arcore_client`. I replaced in my project any instances `api(name: 'arcore_client', ext:'aar')` which is the arcore_client.aar that unity packages with the latest maven arcore_client published package and this fixed it for me, `api 'com.google.ar:core:1.41.0'`.

  9. sabbath1989

    Feb 25, 2024 15:52

    Still happens in version 2021.3.33f1

  10. bbridgesvb

    Jan 26, 2024 21:26

    I'm still seeing this issue in Unity 2022.3.18f1 with Unity ARFoundation 5.0.7 and 5.1.1 - com.google.ar.core.InstallActivity is called when Google Play Services for AR is not installed on the Android device, which results in the app crashing with this error.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.