Reputation: 12768
I get the error using the Android Studio (but I get the same if I use ADB from command line).
Every solution I found says that I need to delete the installation folder on the phone:
adb shell rm -r /data/data/com.example.my
but I get a permission denied
error.
So what can I do on non rooted device?
(I can't delete the folder from device file browser, the folder /data is empty)
The app is not listed in the Android app manager
adb uninstall com.example.my
gives
Failure
Upvotes: 0
Views: 1854
Reputation: 419
Unfortunately the only fix I have found for a non-rooted phone is to wipe the device and start again. The reason this is happening will be because the folder still exists with one file that wasn't deleted.
Upvotes: 2
Reputation: 678
Why don't you uninstall the app using:
adb uninstall com.example.my
This question is related: Android INSTALL_FAILED_UID_CHANGED
Upvotes: 0
Reputation: 155
Try this out
adb shell pm clear MY_PACKAGE_NAME
or maybe this:
adb install -l -r <'apk_name'>.apk -l = forward lock -r = reinstall
Upvotes: 1