On gradle sync, it errors with:
WARNING: [XmlResourcesTransformer] No mapping for: android/support/FILE_PROVIDER_PATHS
<provider android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
provider_paths.xml
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-files-path
name="my_images"
path="." />
</paths>
How to solve this?
Likely this comes from Jetifier - and disabling it (while feasible) might work around the issue, as there won't be any attempts at mapping it. While
android:exported="false"
probably doesn't make much sense for aFileProvider
, which usually is being supposed to be exported (exposed).There's a blacklist for the Jetifier (in
gradle.properties
), in case it cannot be disabled:And there's also an
android.jetifier.ignorelist
...not sure what the actual difference is. This is only a guess, as I cannot reproduce the issue, but it still seems to be a quite likely guess.