open_file
open_file copied to clipboard
FileProvider declaration is conflicting with other plugins on Android
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
hi, i got same issue did this issue solved ?