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

Conflict in file provider path #411

Closed
AlexV525 opened this issue May 8, 2019 · 7 comments
Closed

Conflict in file provider path #411

AlexV525 opened this issue May 8, 2019 · 7 comments

Comments

@AlexV525
Copy link

AlexV525 commented May 8, 2019

Hi there!
Today I just met a problem with file provider path, which this package's is conflict with multi_image_picker, and the author is here @Sh1d0w.

Here's log for the error:

Error:
    Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/filepaths) from [:flutter_webview_plugin] AndroidManifest.xml:17:17-50
    is also present at [com.sangcomz:FishBun:0.9.0] AndroidManifest.xml:19:17-55 value=(@xml/provider_paths).
    Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.

FishBun is provided by multi image picker, so I think maybe this is related.
I'm using webview_plugin with 0.3.5, and multi_image_picker with 4.2.1.

Hope this can be figured out and fixed ASAP!

@AlexV525
Copy link
Author

AlexV525 commented May 31, 2019

As FishBun updated with custom provider fixes, can webview plugin uses the same method to avoid this happened? @charafau
See PR here: sangcomz/FishBun#151

@merRen22
Copy link

merRen22 commented Jun 5, 2019

@AlexVincent525 updating multi_image_picker to latest version fixed everything for me it updated the FishBun version

@AlexV525
Copy link
Author

AlexV525 commented Jun 5, 2019

@merRen22 Yep. But if this won't fix with custom provider or some other methods, it will happen again if there's a conflict like this one.

@xiaobeiy
Copy link

flutter 1.9.1+hotfix6

install_plugin: 2.0.1
The err log is:

Attribute provider#androidx.core.content.FileProvider@authorities value=(cn.net.shihong.rcb.fileProvider.install) from [:install_plugin] AndroidManifest.xml:12:13-72
        is also present at [:flutter_webview_plugin] AndroidManifest.xml:11:13-64 value=(cn.net.shihong.rcb.fileprovider).
        Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:10:9-18:20 to override.

@cucumbersunny
Copy link

cucumbersunny commented Dec 16, 2019

That's because the install_plugin uses exactly the same provider name.
try add
<provider android:name="androidx.core.content.FileProvider" tools:replace="android:authorities" android:authorities="${applicationId}.fileProvider.install" android:exported="false" android:grantUriPermissions="true"> <meta-data tools:replace="android:resource" android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_install_paths"/> </provider>
to the file 'AndroidManifest.xml' below application tag

@The-five-stooges
Copy link

#621 this solution solve the problem, also add xmlns:tools="http://schemas.android.com/tools" in the manifest tag

@AlexV525
Copy link
Author

It's already done with sangcomz/FishBun#151 . So I'm going to close the issue.

#621 this solution solve the problem, also add xmlns:tools="http://schemas.android.com/tools" in the manifest tag

This one works too.

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

5 participants