访问被拒绝发现 属性 "ro.vendor.df.effect.conflict"

Access denied finding property "ro.vendor.df.effect.conflict"

你好,我正在录音,它给我一个错误。

我想不通谁能帮帮我。

2021-01-24 19:21:53.708 4661-4661/com.koteswara.mediarecordersample E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
    2021-01-24 19:21:53.716 4661-4703/com.koteswara.mediarecordersample E/Perf: Fail to get file list com.koteswara.mediarecordersample
    2021-01-24 19:21:53.716 4661-4703/com.koteswara.mediarecordersample E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
    2021-01-24 19:21:53.716 4661-4703/com.koteswara.mediarecordersample E/Perf: Fail to get file list com.koteswara.mediarecordersample
    2021-01-24 19:21:53.716 4661-4703/com.koteswara.mediarecordersample E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array

我发布了我的答案,它也可能对其他人有帮助。我通过将 文件目录路径 更改为

来解决它
getExternalFilesDir("/").getAbsolutePath(), "filenme.wav"

而不是:

Environment.getExternalStorageDirectory(), "filename.wav"