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 (24)

  1. 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

  2. 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'`.

  3. sabbath1989

    Feb 25, 2024 15:52

    Still happens in version 2021.3.33f1

  4. 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.

  5. Pidgayniu

    Jan 22, 2024 17:41

    This continues to happen on 2020.3.47f1.

  6. QueueBert

    Jan 11, 2024 17:58

    Still happening on 2022.3.13f1 but only seemingly on the aab file when downloaded from the google play store

  7. PrishaUnity

    Jan 09, 2024 16:38

    A flag must now be specified when registering broadcast receivers to indicate export behaviour from Android 14 onwards - https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported

    All cases of broadcast receivers being registered within Unity code have been fixed or handled
    If anyone is still able to reproduce in a project without any third-party libraries or plugins, we will be able to investigate further

  8. TechnicallyBeginner

    Jan 08, 2024 14:19

    *To amend previous message. It still occurred, but was caused by old versions of Firebase, Play Asset Delivery and UniWebView. Logcat was somewhat helpful in tracking these down for anyone else having the issue.

  9. TechnicallyBeginner

    Jan 08, 2024 11:05

    Still happening on 2021.3.33f1

  10. FixitFrank

    Dec 28, 2023 16:51

    Also for me still happening in Still happening on 2021.3.33f1 - silicon

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.