Reputation: 491
I used Microsoft's "Preparing an Application for Release" and "Signing the Android Application Package" tutorials in order to run an APK of an app I built on my Samsung Galaxy S8 phone. When I try to run the APK, I am getting a message "Do you want to install an update to this existing application?...", and when tap "install", it shows an "installing" screen, and after couple of seconds I am getting a message "App not installed". I have done these steps couple of times, each time I got the same result.
Did it happen to anyone? Is there a way to know for 100% what causes this problem? There is not error code and it leaves me hanging.
Upvotes: 0
Views: 2342
Reputation: 491
I would like to thank @Blu and @Cheesebaron for their guidance.
OK, so after trying to understand where my error was (a lot of ctrl+f's), I had: "failure copying native libraries error code=-113". This means I had to my app.Android in Solution Explorer -> Properties -> Android Options -> Advanced -> unchecked all except the last one, then unchecked it, and it checked right back what was needed for it to work. Then it didn't work AGAIN. So I looked up again in logcat (after trying to install again, so that I will see the new error), and I found this: "signatures do not match previously installed version; ignoring!". I went to Settings -> Apps -> searched my app by its name -> Uninstalled. Then I tried installing again, and it worked!
BTW, for the sake of other people - How to use logcat? (generally! you may experience some issues, google it and you'll do fine):
Upvotes: 1