Search code examples
androidandroidx

Migrating to AndroidX - android.support.FILE_PROVIDER_PATHS location


I am in the middle of migrating a project to AndroidX and I am blocked with an issue.

<provider
    android:name="androidx.core.content.FileProvider" <--- Changed to X lib
    android:authorities="${applicationId}.fileprovider"
    android:exported="false"
    android:grantUriPermissions="true">
    <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS" <---- ISSUE
        android:resource="@xml/file_paths" />
</provider>

I searched all the Internet and couldn't find a solution for this: what should I add instead of android.support.FILE_PROVIDER_PATHS for AndroidX?


Solution

  • Still the same. android.support.FILE_PROVIDER_PATHS is in the example here