[Android] INSTALL_FAILED_CONFLICTING_PROVIDER

2019. 5. 23. 21:25Programing/Debugging

 

Problem 1. Failed to install APK at the Android Studio

05/23 21:10:27: Launching App
Install failed.
Installation failed
<a href='rerun'>Rerun</a>

 

Problem 2. Failed to install APK at the CMD

Performing Streamed Install
adb: failed to install app-release.apk: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.bareum_sw.newscol
lector-JzSpewFSi9bZe9H0IovfZw==: Can't install because provider name com.rocketshipapps.adblockfast.contentBlocker.contentProvider (in package com.bar
eum_sw.newscollector) is already used by com.rocketshipapps.adblockfast]

 

 

Root Cause.

Performing Streamed Install
adb: failed to install app-release.apk: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.bareum_sw.newscollector-JzSpewFSi9bZe9H0IovfZw==:

Can't install because provider name com.rocketshipapps.adblockfast.contentBlocker.contentProvider 

(in package com.bareum_sw.newscollector) is already used by com.rocketshipapps.adblockfast]

 

 

Solution. 

Change the name of provider at Manifest XML.

android:authorities="SET_NEW_NAME"

<provider
     android:authorities="com.amnix.adblockwebview.contentBlocker.contentProvider"
     android:name=".contentProvider.FilterContentProvider"
     android:exported="true" />