ssseasonnn / RxDownload

A multi-threaded download tool written with RxJava and Kotlin
Apache License 2.0
4.14k stars 612 forks source link

Android 10 Error #300

Open DeevD opened 4 years ago

DeevD commented 4 years ago

java.io.IOException: Permission denied

ssseasonnn commented 4 years ago

Need to use scope storage in Android 10,you need to change the default download path to the internal storage directory,example:

context.getExternalFilesDir("Downloads")
waqarul commented 4 years ago

I'm facing the same issue. Can you post some code snippet how to use it?

DeevD commented 4 years ago

add in your manifest file android:requestLegacyExternalStorage="true"

kingdevil731 commented 4 years ago

add in your manifest file android:requestLegacyExternalStorage="true"

this is a temporary hack, we need to get a full solution

emartynov commented 4 years ago

Sorry for the offtopic - do i need to request write and read storage permissions?

kingdevil731 commented 4 years ago

Sorry for the offtopic - do i need to request write and read storage permissions?

Hey Yes you have to request the access

akingyin1987 commented 4 years ago

在哪里配置这个默认路径?

emartynov commented 4 years ago

What about Android 11 when we will not be able to access external storage folder?

UsingMisz commented 3 years ago

a tempory hack ,modify compileSdkVersion 29 in build.gradle

waqarul commented 3 years ago

An update regarding Android 11? Will it support?

maxakash commented 3 years ago

@waqarul Any update?

waqarul commented 3 years ago

@maxakash I'm still using android:requestLegacyExternalStorage="true" to make it work on Android 10. But now Google Play store won't allow to publish apps that contains this flag

waqarul commented 3 years ago

@ssseasonnn zou have any thoughts how to get rid of android:requestLegacyExternalStorage for Android 10? As Google Play will not allow to publish apps after 1st June, 2021

ssseasonnn commented 3 years ago

fixed