1
votes

enter image description here

above code is my provider_paths.xml

then i add this into my manifest

    <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="com.packagename.package.provider"
            android:exported="false"
            android:grantUriPermissions="true"
            tools:replace="android:authorities">
        <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/provider_paths" />
    </provider>

then when i try to run the app its giving me error Manifest merger failed with multiple errors, see logs

then merge manifest show me this enter image description here

can anyone help me with this issue? i am using android X currently.

1
You could follow the suggestion. - blackapps

1 Answers

1
votes

As the error info suggesting you to do it this way,

<provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="com.packagename.package.provider"
            android:exported="false"
            android:grantUriPermissions="true"
            tools:replace="android:authorities">
        <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/provider_paths" 
                tools:replace="android:resource"
/>
    </provider>