Android INSTALL_FAILED_UID_CHANGED

前端 未结 26 1256
走了就别回头了
走了就别回头了 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:45

    Same problem on a Mediacom device, first a

    $ adb install -r platforms/android/out/android-debug-unaligned.apk
    3958 KB/s (22887489 bytes in 5.647s)
         pkg: /data/local/tmp/android-debug-unaligned.apk
         Failure [INSTALL_FAILED_DEXOPT]
    

    then a very persistent:

    $ adb install -r platforms/android/out/android-debug-unaligned.apk
    4949 KB/s (22887489 bytes in 4.515s)
         pkg: /data/local/tmp/android-debug-unaligned.apk
         Failure [INSTALL_FAILED_UID_CHANGED]
    

    Doing a factory reset didn't change the dynamic (I got both errors, in sequence).

    • installing the same app with a different id worked
    • installing a different app with the previous id doesn't

    Rooting not an option, the solution for me was a cache wipe: now the offending app id works fine and I didn't had to factory reset (again).

    Hope it helps

提交回复
热议问题