Hello,
I’ve just finished making my game, and after much fiddling with the preferences, I finally managed to make a successful Android build.
I transferred my APK to a tablet and installed it (I have one device which won’t install it for some reason, and gives no reason, but another that does). However, when I run the game on the tablet that it has installed on, I get either a black screen, or the “Made with Unity” logo, and then the game crashes with the vague message:
“[App Name] has stopped”
I’m unsure why this is happening with my Android build, as my PC/Standalone build works perfectly fine. None of the devices are giving me any kind of explanation as to what is causing the crash, just a simple vague message. A friend even tried it on his phone and wasn’t getting any different results.
These are the build settings I’m using:
- A keystore is set, and the preferences directory points to the correct folder
- I have OpenGLE2, Vulkan and OpenGLE3 all in my Graphics APIs (I’ve tried without GLE2, but the result is no different)
- Minimum API Level is 4.4 (the tablet I’m trying to test it on is on Android 4.4.2)
- Scripting Backend is IL2CPP
- API compatibility level is .NET 4x
- I’ve checked both Target Architectures; ARMv7 and ARM64 (the tablet gave a “library returned null” error message when I only have ARM64 checked. Please let me know if you’d like to see this error message, but bear in mind it isn’t showing any more)
I’m no expert on Android, but I feel the way the build is being made is what’s causing this. I’d be really grateful if someone could help me get to the bottom of this so I can finally get my App to run on an Android device.
On another note, I also get the following yellow warning messages in the console whenever I open my Android player settings:
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
System.Threading.ThreadHelper:ThreadStart ()
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
System.Threading.ThreadHelper:ThreadStart ()
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
System.Threading.ThreadHelper:ThreadStart ()
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
System.Threading.ThreadHelper:ThreadStart ()
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
System.Threading.ThreadHelper:ThreadStart ()
If any further information is needed, do let me know. The tablet itself isn’t telling me anything when the app crashes.
Thanks in advance.