INSTALL_FAILED_SHARED_USER_INCOMPATIBLE while using shared user id

后端 未结 10 1240
情深已故
情深已故 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: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 
        package:com.android.providers.applications
        package:com.android.providers.calendar
        package:com.android.providers.contacts
        package:com.android.providers.downloads
        ...
        shell@android:/ # pm uninstall 
        shell@android:/ # exit
        shell@android:/ $ exit
        $
    

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

提交回复
热议问题