an error occurred while deploying the file. install failed conflicting provider

11,204

Solution 1

I had same problem, solved it by uncheck Verify apps over USB under Developer settings

enter image description here

Solution 2

Actually @WenChao's answer is the solution, but for me this option was disabled. in this case you need to run following command (in order to uncheck Verify apps over USB option):

adb shell settings put global verifier_verify_adb_installs 0

Make sure adb is connected to emulator (run adb devices to see connected devices)

If you want to check the option (are you crazy?) just pass 1 instead of 0 in above command.

Share:
11,204
AndroidDev
Author by

AndroidDev

Updated on July 20, 2022

Comments

  • AndroidDev
    AndroidDev almost 2 years

    I generate apk file for my project but when I drag and drop it to genymotion I see this error:

    an error occurred while deploying the file. install failed conflicting provider
    
    • AndroidDev
      AndroidDev about 8 years
      I find my problem. It was for the same installed project in my pc with different password for keystore.
    • Zeeshan Ahmad Khalil
      Zeeshan Ahmad Khalil almost 6 years
      Thanks you should post it as an answer.
  • Rajesh
    Rajesh almost 2 years
    No, It didn't work
  • Rajesh
    Rajesh almost 2 years
    It didn't work for me