adb uninstall failed

2019-01-21 09:24发布

I am writing some sample apps.
After I debug these apps, I don't see an uninstall button in my device's application management.
When I do adb uninstall, it always says Failure without any reason.
In DDMS I saw that my apk is stored in /data/app/com.k2g.leaveDemo-1.apk.
I am not sure what am I missing.
I always have to reset my device to get rid of these apps :(

Do I need to do sign something?
Do I need to do something in debug mode?
Or does it depend on the version?

I am using Samsung S2.

标签: android adb
22条回答
beautiful°
2楼-- · 2019-01-21 09:59

Make sure you enter the full package name with application name:

com.domain.app
查看更多
\"骚年 ilove
3楼-- · 2019-01-21 10:01

You should have to manually delete apps. got to Setting-> Application Management -> Running application, tap on it and you can remove, stop apps from there.

查看更多
萌系小妹纸
4楼-- · 2019-01-21 10:05

Open your application Manifest and check the application's package first.

After that, be sure that your device is set into debugger mode.

Check if ADB can interact with your device:

adb devices

If your device is listed, then run:

adb uninstall PACKAGE_WRITTEN_IN_MANIFEST

查看更多
兄弟一词,经得起流年.
5楼-- · 2019-01-21 10:07

I find that adb shell pm uninstall <package> works consistently, where adb uninstall <package> does not.

查看更多
登录 后发表回答