0

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
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
  • Just uninstall the app through the app manager. If don't forget to "Uninstall for all Users" if you're on a tablet version of JB+. – 323go Aug 29 '14 at 16:42
  • @323go I updated my question, can't see it listed in the app manager – Seraphim's Aug 29 '14 at 16:43

3 Answers3

2

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.

Seraphim's
  • 12,559
  • 20
  • 88
  • 129
Breadbin
  • 410
  • 4
  • 15
1

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
WhTiggaW
  • 155
  • 1
  • 6
0

Why don't you uninstall the app using:

adb uninstall com.example.my

This question is related: Android INSTALL_FAILED_UID_CHANGED

Community
  • 1
  • 1
MartinCR
  • 658
  • 6
  • 7