Didn't find class "android.support.v4.content.FileProvider" on path:

今天在学习时,遇到了这个问题: **Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path:**
DexPathList[[zip file “/data/app/com.example.network-GevK-Hy7b0IyW7e0FKFeUA==/base.apk”],nativeLibraryDirectories=[/data/app/com.example.network-GevK-Hy7b0IyW7e0FKFeUA==/lib/x86, /system/lib, /system/product/lib]]

意思大概是这样的:没有找到这个类

解决方法:在AndroidManifest.xml把这个

android.support.v4.FileProvider

改为

androidx.core.content.FileProvider

如下图所示:Didn't find class
Didn't find class

你可能感兴趣的:(Android,Studio)