I'm using different Flavours in my project and i had to use some code to save pictures in my internal storage.
The documentation/link i read says that i have to put this in my android manifest:
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.q4tech.magazine.fileprovider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
It works perfectly. I can save the pictures with no problem BUT now i cant install others flavors in my phone because of this error:
10/10 15:46:45: Launching 'app' on samsung SM-G9650. Installation did not succeed. The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER Installation failed due to: 'null' Retry
I don't know what else to do. I don't understand the problem.