Recently I bought a new computer and installed Android Studio on it. I transferred all te files necessary from my old computer so I could continue my work on my app.
The code was built and ready to upload to my device, but I got the message ' INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES', and Android Studio advised me to uninstall my app from my phone and try again.
Whe I tried this, I noticed the 'delete' button was greyed out, and in Settings -> Apps -> TestApp (name of my app) I noticed the buttons for 'Force quit', 'Move to SD-card', and 'Clear Cache' were all greyed out.
Is there anything I can do to make my phone delete my app, and to enable these functions in the future?
EDIT: after running adb uninstall mypackagename
I got the result Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]
. My app uses the Device Policy Manager for locking and unlocking the phone.
SOLVED: After looking up the error code, I found the solution here at StackOverflow.
Thank you very much everyone!