adb uninstall failed

前端 未结 24 1557
清歌不尽
清歌不尽 2020-12-12 18:44

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

相关标签:
24条回答
  • 2020-12-12 19:34

    okey I was in same situation I tried all of this without result.. and the last answer was close.. I got it doing the follow:

    in order to get the right name of your package do the follow:

    adb shell pm list packages | grep "name of your app here"

    you should see the right name of your app.. so now this one just works:

    adb uninstall com.your-real-app-name
    

    finally the command run works again:

    ionic run android
    
    0 讨论(0)
  • 2020-12-12 19:34

    If you have problems uninstalling through adb, I can recommend the following tool:

    https://github.com/patrickfav/uber-adb-tools

    you can use wildcards and supports multiple devices, also has some better error handling than the vanilla ADB (but uses it in background of course). Will work on your platform.

    Full disclaimer: I am the developer

    0 讨论(0)
  • 2020-12-12 19:34

    It can be something as simple as typing the package name in the wrong case...

    I had the same problem - turned out I was entering the package name in all lower case when the actual package name included upper case characters.

    adb uninstall -k <packageName - eg. com.test.app>
    

    ( If you're explicitly uninstalling you probably don't want the -k which keeps the app data and cache directories around. )

    0 讨论(0)
  • 2020-12-12 19:36

    This is not an exact answer, but if you're looking to uninstall the app because you have an updated .apk to install, you can try this:

    adb install -r yourapp.apk
    

    The -r option tells adb to reinstall the app

    0 讨论(0)
  • 2020-12-12 19:36

    Just run ADB and use the following command:

    adb shell pm uninstall -k --user 0 <package name>
    

    And you should get this return:

    successful
    
    0 讨论(0)
  • 2020-12-12 19:37

    Try disable "Instant run" from settings window

    0 讨论(0)
提交回复
热议问题