Android 8.0
Application of flash back
error is :
java.lang.RuntimeException: Unable to get provider android.support.v4.content.FileProvider: java.lang.IllegalArgumentException: Missing android.support.FILE_PROVIDER_PATHS meta-data
I am a step by step according to the document
what should i do ? :
You might be missing meta-data in your manifest file. Try adding this
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}"
android:exported="false"
android:grantUriPermissions="true" >
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
and the filepaths like this:
<?xml version="1.0" encoding="utf-8"?>
<paths>
<cache-path
name="camera_photos"
path="" />
</paths>
(spent hours with same problem.)
Most helpful comment
and the filepaths like this:
(spent hours with same problem.)