Hi folks,
I’m currently getting the following issues:
I build my game targeting API level 29 and run it on my pixel 3.
When opening my game for the first time after a fresh install, I’m prompted for “Files and media” permission. This is expected given I save the player’s high score to disk
After accepting the permissions, the app crashes.
Re-opening the app starts the game as expected, with permissions intact.
The logcat doesn’t indicate a crash, in fact Unity did even output memory statistics, which happens only whe Unity quits normally.
Does the same happens with empty project?
A longshot, but I think I saw something similar, when Android Studio’s Layout inspector is used, by any chance do you have Layout Inspector opened in Android Studio?
Small update on this issue - I ended up realizing I didn’t need the external storage permissions hence turned them off.
As follow up on your suggestions - it did happen with an empty project with “write Permission” set to “External (SD Card)”. Moreover, I didn’t have the Android Studio’s Layout inspector open!
I don’t think I have an SD card on my phone - perhaps it crashed due to that?