不支持的路径存储/模拟/0/测试 [英] Unsupported path storage/emulated/0/test

查看:108
本文介绍了不支持的路径存储/模拟/0/测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个移动应用程序(react native 0.60.4),我正在使用 rn-fetch-blob 将文件下载到自定义路径storage/emulated/0/test早些时候它工作正常然后我不得不将 targetSDKVersion 更新为 29 并将 compileSDKVersion 更新为 29 之后它停止了在 android 10 中工作即使在添加 android:requestLegacyExternalStorage="true" 之后它也不起作用..

Hi I am working on a mobile application (react native 0.60.4) where I am downloading file using rn-fetch-blob to a custom path storage/emulated/0/test earlier it was working fine then I had to update the targetSDKVersion to 29 and compileSDKVersion to 29 after that it stopped working in android 10 Even after adding android:requestLegacyExternalStorage="true" its not working..

有人可以帮助我解决这个问题吗?或任何其他库与 DownloadManagernotification

can someone help me what could be the work around for this to work. or any other library to use with DownloadManager with notification

TIA

推荐答案

Android 10 设备上的DownloadManager 不会下载到外部存储的根目录或您自己的外部存储根目录.

DownloadManager on an Android 10 device wil not download to the root of external storage or to your own directory on root of external storage.

您必须选择外部存储上的公共目录之一,如文档、下载、DCIM 等.

You have to choose one of the public directories on external storage like Documents, Download, DCIM and so on.

对于 DownloadManager,您不需要请求旧的外部存储.

For the DownloadManager you do not need to request legacy external storage.

这篇关于不支持的路径存储/模拟/0/测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆