java.lang.IllegalStateException: Record is Take
时间: 2023-11-11 11:56:38 浏览: 117
java.lang.IllegalStateException: Record is Taken。这个异常通常在音频录制过程中抛出。根据引用中的代码,当调用AudioRecord的stop()方法时,如果当前的录制状态不是初始化状态(STATE_INITIALIZED),就会抛出这个异常。也就是说,在录制音频之前,需要先初始化AudioRecord对象。如果在开始录制之前没有调用初始化方法,或者在已经开始录制后再次调用了stop()方法,就会出现这个异常。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [java.lang.IllegalStateException异常产生的原因及解决办法](https://blog.csdn.net/culous/article/details/52823877)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Android-系统服务-MediaRecorder](https://blog.csdn.net/pwp032984/article/details/122573279)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文