1、java.lang.SecurityException: Provider must not be exported
解决方案:android:exported必须设置成false
2、Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
解决方案:AndroidManifest.xml处的android:authorities的值必须跟getPackageName() + ".fileprovider"一样
网友评论