Android app crashes when trying to load a scene
The first time you open the app in a device, the "Main Menu" scene works fine, but when trying to change to the "Game Scene", the app crashes. After that, everytime that you try to open the app again, it crashes before reaching the "Main Menu" scene, it gets stuck in a black screen.
I'm using the Unity 2019.3.9f1 version. I have already disabled the google backup option in the android manifest (some people said that this could be causing the problem, but it looks like it isn't that). I have tried to add the permission to read external storage too, but it didn't work as well.
My app only has 27MB, it's very simple.
Answer by Hansel41 · Nov 15, 2020 at 04:25 PM
Even i'm stuck at this point brother from weeks.... Have ya find any solution? i desperately need a solution.
I solved that, but I don't remember very well what I did, I tried a lot of things. One of the things I did that I remember is changing the "Target Eye" in the main camera to "none". And another thing was having a lot of stuff being loaded at the scene change. $$anonymous$$obile games have a lot of problems with optimizations.
One tip I can give that I learned and it helped me a lot optimizing my mobile game, is using object pooling system, if you don't know what that is, search how it works, it helps a lot. For pc games that isn't necessary, for mobile is basically mandatory.