App crash at launch with SDK 34 and Android 14 mobiles

It should be listed automatically, if it doesnt checkout your Android SDK and use sdkmanager.bat -list. If there’s an error, the SDK Installation might fail.

Also checkout the log/console when you open your build settings for android, if there is an error about invokation failed about sdkmanager

there is no error message. The build is fine. Just it builds with target Android level 26, not 34, even though I selected the highest installed.

So afaik, Unity doesn’t show all the installed Android versions.

How to fix this!

You are not using the recommended SDK, and dont use Highest Installed, instead explicitly select the target SDK.

No Warning on SDK Tools

That’s just ridiculous. You saying that I have to install Android SDK/JDK/NDK on every Unity version I installed? And why does the older version(2021 LTS) work without any problem?

It’s an external tool setting in 20201.3.13f1 using the same SDK.

It works without problem even though I keep installing the new Android version installed.

And that is a warning, not an error. It’s not a problem with SDK. Just unity doesn’t handle it properly.

image

That is a bullshit. In installed 33 and 34 and it works 20201.3.31f1 LTS, using the highest installed option.

Okay i just installed SDK and now I can build with API level 34. But when I upload it on Google Play Console, they don’t accept with this with message:

Update your com.google.android.play:core:1.10.3 Maven dependency to an Android 14 compatible version! Your current com.google.android.play:core:1.10.3 library is incompatible with targetSdkVersion 34 (Android 14), which introduces a backwards-incompatible change to broadcast receivers. As a reminder, from August 31, 2024, Google Play requires all new app releases to target Android 14. Update to the latest library version dependency to avoid app crashes.

Any idea how to solve this?

1 Like

Just installed SDK Manager from Unity Hub.

1 Like

Any updates? I have same issue which @Cloudattack-Admin mentioned, most of difference is my Unity version is a bit higher(2022.3.44f1)

Also, I’m currently using Appsflyer, if I turn it off(or say, remove it from project) it will run smoothly. the problem only occur when i turn Appsflyer on…

It’s likely that the issue is related to Appsflyer not being updated for SDK 34. What version of their SDK are you using?

According to their latest release notes, they released a new version (6.15.1) just 4 days ago that adds support for targetSDKVersion 34. Make sure you’re using that version.

It turns out It’s all about Firebase, Appsflyer was not guilty at all… anyhow, I appreciate your rapid response!

1 Like