Hi, I made a very simple 2d game for android. Build was success with 0 errors. I uploaded the .apk file to my google drive. From there I downloaded it to my HUAWEI P8-LITE old phone. I’m using Android 6.0 on it.
Everythings works great on my phone.
I’ve downloaded it again to a LENOVO tablet with Android 9.0 on it. I got “App not installed” error with nothing else. It’s driving me insane. I tried several Android emulators. On every single one of them I got “App not installed” error. On one of them I got something like “Your phone is not compatible” beside the other error and that’s it.
It works only on my phone.
Things I’ve tried:
Googling
Turn off Play Protect (from Google Play)
Allow apps from untrusted sources
Cleaning more free space
Setting “Install Location” to Automatic (from Player settings)
Downloading/importing the .apk from somewhere else
After a long time wondering and playing with the settings I think its working now. Here are some of my options in the Player settings:
Scripting backend: IL2CPP
Api compatibility level: .NET Standard 2.0
Target Architectures: ARMv7, ARM64, x86 (deprecated).
Install location: Automatic
Write Permission: Internal
Beside the things I’ve written in the question I also checked all three architectures as targets (even the deprecated one). I’ve connected the tablet with USB in order to use Build and Run option and didn’t see any error (when I later changed target architectures a error told me that I should target ARMv7 too) and everything worked as expected.
I later uploaded it to my drive again and installed it from there too.
I’ve tried & tested in emulators too (I think the deprecated architecture is used).
Lenovo tablet probably runs Intel CPU, thus if you download app from google play store, the app needs to support x86 and x64 architectures, Unity doesn’t support x64 Intel architecture, only x86 was supported which was deprecated due fact there’s a very little percentage of Intel android devices.
So in short with latest Unity, only ARM based Android devices are supported