在使用FileProvider时报错:
Caused by: java.lang.ClassNotFoundException: Didn’t find class
“android.support.v4.content.FileProvider” on path:
只需要将:
android.support.v4.content.FileProvider
改为:
androidx.core.content.FileProvider
如果是在AndroidManifest.xml
同理将:
android:name=“android.support.v4.content.FileProvider”
改为:
android:name="androidx.core.content.FileProvider"