androiddebuggingpermissionsadbsamsung-knox

Permission Denial: runUninstall from pm command asks to run as user -1 but is calling from user 0;


I'm just upgrade my Android device (Samsung J7Pro) to 9.0 (Pie) and when I want to run any application from Android Studio I face to this problem that says:

Permission Denial: runUninstall from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL.

I have tried to add

INTERACT_ACROSS_USERS_FULL

to my AndroidManifest.xml but get the same error.

Any help?


Solution

  • I have found the solution

    1. First turn off the developers option
    2. Restart your device
    3. Turn on again your developers option and turn on Usb Debugging