1、在AndroidMenifest.xml文件下配置
<provider
android:name="androidx.core.content.FileProvider" //固定写法
android:authorities="com.bronet.rfid.provider" //包名.provider
android:exported="false" //固定写法
android:grantUriPermissions="true" //固定写法
>
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS" //固定写法
android:resource="@xml/file_paths" /> //xml文件下的路径配置文件,file_paths配置文件
</provider>
2、res下创建xml文件夹,文件夹下创建file_paths.xml文件,添加路径配置
<?xml version="1.0"