ChiliLabs / ChiliPhotoPicker

Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.
Apache License 2.0
405 stars 45 forks source link

Authority Issue while accessing camera #16

Open qabbas72 opened 4 years ago

qabbas72 commented 4 years ago

I am facing issue while accessing camera

Couldn't find meta-data for provider with authority ${applicationId}.fileprovider

   <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="${applicationId}.fileprovider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/file_provider_paths" />
    </provider>

file_provider_paths:

In App Class

ChiliPhotoPicker.INSTANCE.init(new GlideImageLoader(), BuildConfig.APPLICATION_ID+".fileprovider");