Missing android.support.FILE_PROVIDER_PATHS meta-data

Seems like something is set wrong, The compiler doesn't find android.support.FILE_PROVIDER_PATHS , thus, it throws this error, check if everything is set correctly in your gradle file, if you change the package of the android.support this exception might arise.

After fixing, do a clean, rebuild, or clean and invalidate cache in Android studio.


Please do invalidate caches and restart function in android studio, most probably that will do.

After that rebuild and run your app. In my case it worked perfectly fine.


In your AndroidManifest file, you have a slight typo in the metadata:

<meta-data
    android:name="android.support.FILE_PROVIDER_PATHS" <-- HERE!!!
    android:resource="@xml/provider_paths" />

You need to use FILE_PROVIDER_PATHS instead of FILE_PROVIDE_PATHS.