Skip to content Skip to sidebar Skip to footer

Androidx File_provider_paths

How to migrate FileProvider to androidx? In the manifest file, how to specify the FileProvider?

Solution 1:

This seems to fix the issue:

<provider
            android:authorities="${applicationId}.FileProvider"
            android:name="androidx.core.content.FileProvider"
            android:enabled="true"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_path" />
        </provider>

Post a Comment for "Androidx File_provider_paths"