Android API 29-存储读写权限被拒绝

时间:2020-09-29 14:14:27

标签: android flutter

嗨,我想在Playstore上发布我的应用,但我要求将sdk版本从28提高到29,这样做完全破坏了我的部分应用功能。对话框弹出时,我正在正确请求存储权限,但是当应用尝试读写时,控制台中出现异常

[ERROR:flutter/lib/ui/ui_dart_state.cc(171)] Unhandled Exception: FileSystemException: Cannot open file, path = '/storage/emulated/0/LoliSnatcher/config/settings.conf' (OS Error: Permission denied, errno = 13)

我也无法将图片写入图片目录

有人知道如何解决此问题吗?

0 个答案:

没有答案