Android INSTALL_FAILED_UID_CHANGED

前端 未结 26 1138
走了就别回头了
走了就别回头了 2020-11-28 07:37

I have been doing debugging on Android using my Nexus 4, however I recently encountered this error here. After doing some research on this error, it seems to be an issue wit

相关标签:
26条回答
  • 2020-11-28 07:49

    For anyone running Junit style tests from their computer and getting this error- while the console it told me there was a problem with my application (packaged in the format 'com.myapp.stuff'), the real issue was my test code package, which if you're running on a device gets installed as a separate app with the package name like 'com.myapp.stuff.test'. Deleting the test code "application" using the Application manager and deleting my actual app solved the problem for me. I'm posting this answer here to save someone else a "Duh" moment.

    0 讨论(0)
  • 2020-11-28 07:49

    Rooting and factory reset were not an option for me, but I was able to find an older version of my APK and install that (I'm guessing it was the same one that failed to uninstall properly). After uninstalling that one again, I was able to install new versions.

    0 讨论(0)
  • 2020-11-28 07:50

    Just uninstall the app itself (not the data folders) then reinstall it, and it should be fine. Android's complaining because you may have previously debugged the app from another computer.

    0 讨论(0)
  • 2020-11-28 07:50

    I fix this, maybe it will work anyone else.

    I'm restart my phone, then remove a few more app. And try again to install, it's work!

    Maybe problem is about to storage. I don't know why, but it's work now. Good luck! (Sorry about bad English)

    0 讨论(0)
  • 2020-11-28 07:53

    For me the trick was done by unchecking "Verify apps over USB" in the "Developer options" section.

    0 讨论(0)
  • 2020-11-28 07:53

    I deleted /data/data/my.package.name and /data/app/my.package.name.apk, problem still persistent.

    however I found a folder /data/user/0/my.package.name, delete it and problem solved.

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