android studio (record audio)一些问题记录

该日志记录了应用程序尝试录音时遇到的权限问题,包括未获得RECORD_AUDIO权限导致的一系列错误,并记录了一个尝试启动Activity但未能找到对应处理程序的ActivityNotFoundException。
摘要由CSDN通过智能技术生成

2022-03-29 19:23:16.253 1659-1706/? E/: Request requires android.permission.RECORD_AUDIO
2022-03-29 19:23:16.253 1659-1706/? E/AudioPolicyIntefaceImpl: getInputForAttr permission denied: recording not allowed for uid 10041 pid 3036
2022-03-29 19:23:16.253 1659-1706/? E/AudioFlinger: createRecord() checkRecordThread_l failed
2022-03-29 19:23:16.253 3036-3169/? E/IAudioFlinger: createRecord returned error -22
2022-03-29 19:23:16.253 3036-3169/? E/AudioRecord: AudioFlinger could not create record track, status: -22
2022-03-29 19:23:16.253 3036-3169/? E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
2022-03-29 19:23:16.253 3036-3169/? E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.

运行项目:

D/NetworkSecurityConfig: No Network Security Config specified, using platform default

2022-03-29 19:37:32.080 7329-7329/org.voip.sipua W/System.err: android.content.ActivityNotFoundException: No Activity found to handle Intent {  }
2022-03-29 19:37:32.081 7329-7329/org.voip.sipua W/System.err:     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2007)
2022-03-29 19:37:32.081 7329-7329/org.voip.sipua W/System.err:     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
2022-03-29 19:37:32.082 7329-7329/org.voip.sipua W/System.err:     at android.app.Activity.startActivityForResult(Activity.java:4586)
2022-03-29 19:37:32.082 7329-7329/org.voip.sipua W/System.err:     at android.app.Activity.startActivityForResult(Activity.java:4544)
2022-03-29 19:37:32.082 7329-7329/org.voip.sipua W/System.err:     at android.app.Activity.startActivity(Activity.java:4905)
2022-03-29 19:37:32.082 7329-7329/org.voip.sipua W/System.err:     at android.app.Activity.startActivity(Activity.java:4873)
2022-03-29 19:37:32.082 7329-7329/org.voip.sipua W/System.err:     at org.voip.sipua.ui.SettingsNew.ignoreBattery(SettingsNew.java:22)
2022-03-29 19:37:32.082 7329-7329/org.voip.sipua W/System.err:     at org.voip.sipua.ui.Settings.onCreate(Settings.java:274)
2022-03-29 19:37:32.085 7329-7329/org.voip.sipua W/System.err:     at android.app.Activity.performCreate(Activity.java:7136)
2022-03-29 19:37:32.085 7329-7329/org.voip.sipua W/System.err:     at android.app.Activity.performCreate(Activity.java:7127)
2022-03-29 19:37:32.086 7329-7329/org.voip.sipua W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
2022-03-29 19:37:32.086 7329-7329/org.voip.sipua W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
2022-03-29 19:37:32.086 7329-7329/org.voip.sipua W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
2022-03-29 19:37:32.086 7329-7329/org.voip.sipua W/System.err:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
2022-03-29 19:37:32.086 7329-7329/org.voip.sipua W/System.err:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
2022-03-29 19:37:32.086 7329-7329/org.voip.sipua W/System.err:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at android.os.Looper.loop(Looper.java:193)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6669)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2022-03-29 19:37:32.087 7329-7329/org.voip.sipua W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值