My Android app immediately crashes on some devices, not all. When I build with “Build App Bundle (Google Play)” enabled, some devices will immediately crash. When I build a normal apk, it works on all devices.
I’ve tried adjusting the API levels, but nothing seems to fix it. I don’t understand why it’s inconsistent too. Some modern phones can load it, and some can’t. This also isn’t a holdover from loading development builds onto a devices, because people who have downloaded it from the store are having issues.
Every forum post I read that’s adjacent to this is going way over my head.
Looking at your build settings I could guess it is related to Target API 34 crash, which was already fixed. Try updating Unity to a later version and if that doesn’t help - share the crash log
Thank you all! I just updated from .24 to .38 and that resolved the issue! The update recommended me change some build settings, and now the game works on all android devices!!
Unity 2020 is not supported anymore, so fix won’t be ported to that version. In theory you could workaround these issues in your project manually, but not sure how easy that would be.
For now Google requires target API 33 in order to publish app to the Play Store, so you could try using that as a workaround, but keep in mind that API 34 will become required soon (If I remember correctly end of August).
If you’d like to give a shot and fix the crash in your project - crash is reproducible when launching app targeting API 34 on Android 14 devices. It’s caused by Google enforcing broadcast receivers to have exported/not exported flag. One of the crash sources is Play Asset Delivery. That info can act as a starting point for your investigation.