open_file icon indicating copy to clipboard operation
open_file copied to clipboard

FileProvider declaration is conflicting with other plugins on Android

Open ekuleshov opened this issue 4 years ago • 1 comments

With other plugins, like share_extend app has own declaration of FileProvider, so with open_file plugin build is failing with error like:

/project-dir/android/app/src/debug/AndroidManifest.xml Error:
	Attribute provider#androidx.core.content.FileProvider@authorities value=(org.package.name.provider) from (unknown)
	is also present at [:open_file] AndroidManifest.xml:14:13-64 value=(org.package.name.fileProvider).
	Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml to override.
/project-dir/android/app/src/debug/AndroidManifest.xml Error:
	Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/provider_paths) from (unknown)
	is also present at [:open_file] AndroidManifest.xml:20:17-50 value=(@xml/filepaths).
	Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.

It would be more flexible to let app developers to declare FileProvider in the app's AndroidManifest.xml

ekuleshov avatar Apr 12 '20 03:04 ekuleshov

hi, i got same issue did this issue solved ?

Jai05-techie avatar May 14 '20 08:05 Jai05-techie