Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 10 ChooserException #207

Open
AsynctaskCoffee opened this issue Apr 28, 2020 · 7 comments
Open

Android 10 ChooserException #207

AsynctaskCoffee opened this issue Apr 28, 2020 · 7 comments

Comments

@AsynctaskCoffee
Copy link

com.kbeanie.imagechooser.exceptions.ChooserException: Error creating directory: /storage/emulated/0/bichooser

@AsynctaskCoffee
Copy link
Author

It is not working on Android 10 devices. (I have tested with Honor20, Mi9T and Nova5i)

@balavishnu
Copy link

Yes, I am also facing the same issue

@balavishnu
Copy link

@AsynctaskCoffee Did some search and found that its a change in Android 10 and above. Need to add android:requestLegacyExternalStorage="true" to your element in the manifest. More details in the below link

https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10

@AsynctaskCoffee
Copy link
Author

@balavishnu Thank you for your valuable help. This is the definitive solution, I've solved the problem in the same way. :)

@syedsamarulhuda
Copy link

syedsamarulhuda commented Aug 2, 2021

Need to add a fix for the android 10(target SDK 30) in FileUtils class.

@syedsamarulhuda
Copy link

@AsynctaskCoffee Did some search and found that its a change in Android 10 and above. Need to add android:requestLegacyExternalStorage="true" to your element in the manifest. More details in the below link

https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10

android:requestLegacyExternalStorage="true" is ignored when target sdk is 30

@AsynctaskCoffee
Copy link
Author

@AsynctaskCoffee Did some search and found that its a change in Android 10 and above. Need to add android:requestLegacyExternalStorage="true" to your element in the manifest. More details in the below link
https://stackoverflow.com/questions/58379543/cant-create-directory-in-android-10

android:requestLegacyExternalStorage="true" is ignored when target sdk is 30

Look at: https://developer.android.com/about/versions/11/privacy/storage. 🐰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants