Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

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

Hi i am doing audio recording its throwing me an error.

i am not able to figure it out can some one help me.

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
question from:https://stackoverflow.com/questions/65871472/access-denied-finding-property-ro-vendor-df-effect-conflict

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Hi i solved my problem. I am posting my answer it may help others as well.

i solved it by changing my file directory path as 

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

instead of 

Environment.getExternalStorageDirectory(), "filename.wav"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...