aykuttasil/CallRecorder

Fatal Exception on Android 10

IvanSheigets opened this issue · 2 comments

I tried to use VOICE_RECOGNITION and have next error:

 E/MediaRecorder: start failed: -38
2020-12-04 15:22:47.547 4602-4774/../AndroidRuntime: FATAL EXCEPTION: newRecordingThread
    Process:..., PID: 4602
    java.lang.IllegalStateException
        at android.media.MediaRecorder.start(Native Method)
        at core.recorder.core.android_recorder.MyMediaRecorder.start(

If change the audio source to something else there is no error but no voice record

call recording is working below android version 10 but it is not working for above android version 10 .please help me

Please add plugin in build.gradle file

apply plugin: 'kotlin-android'