I'm new to Android Studio (downloaded it yesterday on my Windows 7 machine) and just finished creating an app using Kotlin. It works properly on the Android Emulator, but when I build a signed APK file and try installing it on my Samsung S7 (Android 8.0.0) phone it shows the mysterious error "App not installed".
I noticed there's a red X mark near MainActivity in the top bar, maybe it has something to do with the problem? It doesn't prevent me from building...
Previous builds of the same app installed properly. The only thing I changed before it started breaking is the location of the AVD folder (using this) from the C drive to the D drive, since I ran out of memory there. I deleted all virtual devices, created the environment variable then created the virtual devices again.
Things I already tried without any luck:
- The top 5 solutions here
- Deleting debug.keystore
- Cleaning and rebuilding the project
- Changing the build variant to "Release"
EDIT: I created a new project and copied my scripts to there, and it now works properly. Not really a solution since this took a lot of time, but it solved the problem.