FileProvider manifest merger conflict with other dependencies

[Problem/Question]

Hi! Im am getting this error after trying to add the uikit sdk:

Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/sb_file_paths) from [:golfer] AndroidManifest.xml:581:17-55

is also present at [:origo-sdk-debug] AndroidManifest.xml:25:17-61 value=(@xml/diagnostic_file_path).

Suggestion: add ‘tools:replace=“android:resource”’ to element at AndroidManifest.xml to override.

It seems like both dependencies are using the same FileProvider. Would if be possible for you guys to subclass FileProvider and use that in the Manifest? I think this would help a lot to prevent clashing with other dependencies other developers may be using in the future.

Solution resource:


// If problem, please fill out the below. If question, please delete.

[UIKit Version]

// What version of the SDK are you using?

implementation ‘com.sendbird.sdk:uikit:3.3.3’

[Reproduction Steps]

// Please provide reproduction steps and, if possible, code snippets.

Have multiple dependencies using androidx.core.content.FileProvider as a provider.

[Frequency]

// How frequently is this issue occurring?

Always

[Current impact]

// How is this currently impacting your implementation?

Halting release to production.

Extra resource: