android 查找属性“ro.vendor.df.effect.conflict”时访问被拒绝

k2arahey  于 2022-11-03  发布在  Android
关注(0)|答案(2)|浏览(823)

嗨,我正在做音频录音,它给我一个错误。
我想不出有谁能帮助我。

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
dwbf0jvd

dwbf0jvd1#

我张贴我的答案,它可能会帮助其他人以及。我解决了它改变我的文件目录路径

getExternalFilesDir("/").getAbsolutePath(), "filenme.wav"

而不是:

Environment.getExternalStorageDirectory(), "filename.wav"
am46iovg

am46iovg2#

我也遇到了一个类似的错误,对我来说,它是通过添加android.enableJetifier=true到gradle.properties解决的。

相关问题