我已經在清單中添加了record_audio權限,但仍然出現錯誤。很有幫助!com.sinch.android.rtc.MissingPermissionException:需要權限:android.permission.RECORD_AUDIO
com.sinch.android.rtc.MissingPermissionException: Requires permission: android.permission.RECORD_AUDIO
at com.sinch.android.rtc.internal.client.calling.DefaultCallClient.throwIfMissingPermission(DefaultCallClient.java:412)
at com.sinch.android.rtc.internal.client.calling.DefaultCallClient.call(DefaultCallClient.java:150)
at com.sinch.android.rtc.internal.client.calling.DefaultCallClient.callUser(DefaultCallClient.java:102)
at com.sinch.android.rtc.internal.client.calling.DefaultCallClient.callUser(DefaultCallClient.java:97)
at com.example.ram.dummy.CallActivity$1.onClick(CallActivity.java:45)
at android.view.View.performClick(View.java:5697)
at android.widget.TextView.performClick(TextView.java:10826)
at android.view.View$PerformClick.run(View.java:22526)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
您是否已添加清單許可? –
https://stackoverflow.com/questions/32635704/android-permission-doesnt-work-even-if-i-have-declared-it – CommonsWare
@NitinKarande yes..add in manifest –