有歧义的报错:android.system.ErrnoException: open failed: EPERM (Operation not permitted)

这个错误一般是Android11+没有分配分区存储权限时,写文件时报的错。

但如果分配了权限有时也会报一模一样的错:

当文件名含有不符合android文件名规则的字符时,例如冒号、反斜杠等字符时。

猜你喜欢

转载自blog.csdn.net/piggy514/article/details/133969290