open failed: EPERM (Operation not permitted)
时间: 2023-10-24 22:01:25 浏览: 377
给项目添加依赖:报错operation not permitted, unlink.原来是4048
open failed: EPERM (Operation not permitted)错误是由于Android 10及更高版本引入了沙盒机制所导致的。这意味着应用程序不能直接访问/sdcard目录下的文件,而是只能保存到应用程序专属的目录下。在AndroidManifest.xml文件中,可以通过在<application>标签下添加属性【android:requestLegacyExternalStorage="true"】来暂时允许应用程序访问/sdcard路径下的文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [FileNotFoundException xxxxxxxxxx open failed: EPERM (Operation not permitted)](https://blog.csdn.net/weixin_44669831/article/details/130850804)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文