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