Recently, after changing the target platform to Android Q, we suddenly got "java.lang.NullPointerException" when accessing external storage in our app. It turned out that was due to the scoped storage change in Android Q.
For now, we have to add the following line in the AndroidManifest.xml to opt it out. But it seems that we won't be able to do that once we target Android R.
android:requestLegacyExternalStorage="true"
You can find more info on Android.com or here.
No comments:
Post a Comment