DEV Community

leminhduc1202
leminhduc1202

Posted on

Answer: Install shows error in console: INSTALL FAILED CONFLICTING PROVIDER

if your are using provider check and do it by following method

        <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="androidx.multidex.provider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/provider_path" />
    </provider>

or use it

    <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="${applicationId}.contentprovider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/provider_path" />
    </provider>

also if the applciation already exits in your mobile uninstall and then check

Top comments (0)