Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest merger failed #9

Open
Amrokh opened this issue Dec 15, 2021 · 5 comments
Open

Manifest merger failed #9

Amrokh opened this issue Dec 15, 2021 · 5 comments

Comments

@Amrokh
Copy link

Amrokh commented Dec 15, 2021

Execution failed for task ':app:processReleaseMainManifest'.

Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/filepaths) from [:image_picker] AndroidManifest.xml:15:17-72
is also present at [com.github.ishaquehassan:AndroidDocumentScanLibrary:1.8.2] AndroidManifest.xml:36:17-55 value=(@xml/provider_paths).
Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.

@aiman5252
Copy link

aiman5252 commented Jan 4, 2022

@Amrokh, you need to add the suggestion to <provider> tag.

Here's mine:

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

Don't forget to add xmlns:tools="http://schemas.android.com/tools" as well to the <manifest> tag.

@Amrokh
Copy link
Author

Amrokh commented Mar 11, 2022

@Amrokh, you need to add the suggestion to <provider> tag.

Here's mine:

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

Don't forget to add xmlns:tools="http://schemas.android.com/tools" as well to the <manifest> tag.

Should I add this in my android>app>src>main>AndroidManifest.xml ? as I've done that and still doesnt work.

@Amrokh
Copy link
Author

Amrokh commented Mar 28, 2022

@aiman5252 Should I add this in my android>app>src>main>AndroidManifest.xml ? or where ? as I've done that and still doesnt work.

@miguelflores1993
Copy link

as I've done that and still doesnt work.

@sanjeevinnobit
Copy link

@miguelflores1993 please refer this #19 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants