Closed songpr closed 2 years ago
This is how i resolved it :
<!-- NullPointerException in Android>24 for ImagePicker without this setting below -->
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.mvc.imagepicker.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths"
tools:replace="android:resource" />
</provider>
And filepaths.xml is :
<paths>
<external-path name="external_files" path="."/>
</paths>
For workaround while waiting for official fix
use below code in build.gradle instead the official one.
implementation 'com.github.songpr:ImagePicker:e2b4383'
The authorities will be not match since application id will match the project package not com.mvc.imagepicker