INSTALL_FAILED_SHARED_USER_INCOMPATIBLE while using shared user id

后端 未结 10 1142
情深已故
情深已故 2020-11-28 10:33

I am working on Android application which will share the database. For that, I\'m using android:sharedUserId in both application\'s Manifest file. When I am try

相关标签:
10条回答
  • 2020-11-28 10:48

    In my case, I had two build variants (one specific for a device, and one general).

    I was running the device-specific build on an emulator when this error showed up.

    0 讨论(0)
  • 2020-11-28 10:52

    I was using Emulator and the solution for me was to select the "AVD Manager" and Wipe all data from my Emulator device. After that application was installed.

    0 讨论(0)
  • 2020-11-28 10:54

    This means something about your app was not correctly uninstalled. This steps help to force uninstall from internal commands:

    1. Connect your phone to PC with usb
    2. From your shell launch:
        $ adb shell
        shell@android:/ $ su
        shell@android:/ # pm list packages | grep <part of package>
        package:com.android.providers.applications
        package:com.android.providers.calendar
        package:com.android.providers.contacts
        package:com.android.providers.downloads
        ...
        shell@android:/ # pm uninstall <package>
        shell@android:/ # exit
        shell@android:/ $ exit
        $
    

    Basically, you log into android shell, become superuser, find problematic packages, and uninstall it

    0 讨论(0)
  • 2020-11-28 10:56

    I followed these steps:

    1. Removed existing application (if it is already installed )
    2. Removed share user ID from android manifest
    3. Bulid the application.
    4. Now enter share user ID again
    5. build the application 1 more time
    0 讨论(0)
  • 2020-11-28 10:59

    Simply delete the existing application from mobile and reinstall using run.

    0 讨论(0)
  • 2020-11-28 11:03

    The solution for me was to select the "Build > Clean Project" menu option. It took a long time but the application deployed once it was complete.

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