App crash on android 15 device in Unity 2022.3.38f1

Here is my build setting

n there is my error log blo

||--------- beginning of main|
|---|---|
||--------- beginning of system|
||2024-08-02 10:28:03.682 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.mainline.primary.libs' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.699 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.uwb' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.700 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.widevine.nonupdatable' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.749 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.android.nfcservices' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.803 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.devicelock' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.861 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.android.apex.cts.shim' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.963 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.appsearch' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:03.998 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.art' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.016 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.hardware.biometrics.face' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.039 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.profiling' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.079 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.mediaprovider' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.109 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.pixel.camera.hal' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.110 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.resolv' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.129 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.configinfrastructure' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.131 10339-10339 Finsky                  com.android.vending                  W  [2] afct.b(126): STU: Failed to get storage stats for package 'com.google.android.media' (1601: Error getting stats: android.content.pm.PackageManager.NameNotFoundException)|
||2024-08-02 10:28:04.306  1533-1592  WindowManager           system_server                        V      startWCT=WindowContainerTransaction { changes = {} hops = [] errorCallbackToken=null taskFragmentOrganizer=null }|
||2024-08-02 10:28:04.326   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=0 error(-22)|
||2024-08-02 10:28:04.326   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied|
||2024-08-02 10:28:04.326   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory|
||2024-08-02 10:28:04.326   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Unable to open log file for PrimaryDisplay_hwc_error_log0.txt|
||2024-08-02 10:28:04.326   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=1 error(-22)|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Unable to open log file for PrimaryDisplay_hwc_error_log0.txt|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=2 error(-22)|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory|
||2024-08-02 10:28:04.327   679-679   hwc-display             and...e.composer.hwc3-service.pixel  E  Unable to open log file for PrimaryDisplay_hwc_error_log0.txt| 

Is there any solution ?

Have you tried changing the target API level to 34?

We are working on updating Android tools on Unity so that 2021.3 and 2022.3 can properly build with Target API Level 35 (Android 15), stay tunned for updates!

I tried changing the target API level to 34 but a crash still happened.

So have to wait updating? or any other way to solve ?

The error message is not very indicative of what’s happening. Is there any other error message you could share with us?

It seems related to com.android.vending (Google Play) but I don’t think that’s the actual crash message.