alhazmy13 / MediaPicker

Media Picker is an Android Libary that lets you to select multiple images or video
alhazmy13.net
Apache License 2.0
268 stars 86 forks source link

Manifest merger failed #110

Open DkKhan786 opened 4 years ago

DkKhan786 commented 4 years ago
Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/image_picker_provider_paths) from [com.github.dhaval2404:imagepicker:1.6] AndroidManifest.xml:31:17-68
    is also present at [net.alhazmy13.MediaPicker:libary:2.4.4] AndroidManifest.xml:29:17-55 value=(@xml/provider_paths).
    Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.

What should i do...?

kavathiyamahesh commented 4 years ago

If you have written FILE_PROVIDER_PATH in manifest then please update your code as per below

<meta-data android:name="android.support.FILE_PROVIDER_PATHS" tools:replace="android:resource" android:resource="@xml/file_paths_public" />

MohamedMedhat2018 commented 3 years ago

Error: Attribute provider#androidx.core.content.FileProvider@authorities value=(app.mandobee.project.fileprovider) from AndroidManifest.xml:27:13-64 is also present at AndroidManifest.xml:24:13-60 value=(app.mandobee.project.provider). Suggestion: add 'tools:replace="android:authorities"' to element at AndroidManifest.xml:25:9-33:20 to override. MandoBee.app main manifest (this file), line 26 Error: Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/imagepicker_file_paths) from AndroidManifest.xml:32:17-63 is also present at AndroidManifest.xml:29:17-55 value=(@xml/provider_paths). Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override. MandoBee.app main manifest (this file), line 31