I'm facing an issue with dropbox in my 2 apps. in fact I have 2 build variants and to be able to handle different secrets for both apps I use Gradle to inject the value into the manifest but for dropbox, i always have this error
The installation did not succeed.
The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER
what I did is I added in the manifest dropboxAppKey
in the scheme attribute
<activity
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:launchMode="singleTask"
>
<intent-filter>
<data android:scheme="db-${dropboxAppKey}" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
and in Gradle i inject the app key corresponding to each flavor
App1 {
manifestPlaceholders = [dropboxAppKey : "123456"]
}
App2 {
manifestPlaceholders = [dropboxAppKey : "654321"]
}
but I got always the same error INSTALL_FAILED_CONFLICTING_PROVIDER