gpt4 book ai didi

android - MediaRecorder : start failed -1 mean? 是什么

转载 作者:行者123 更新时间:2023-11-30 04:27:51 25 4
gpt4 key购买 nike

找不到 MediaRecorder: start failed -1 错误消息的含义。

我在调用 MediaRecorder.start() 时得到它;

谢谢你的时间。

11-17 20:01:49.726: E/MediaRecorder(20600): start failed: -1
11-17 20:01:49.726: W/dalvikvm(20600): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
11-17 20:01:49.726: E/AndroidRuntime(20600): FATAL EXCEPTION: main
11-17 20:01:49.726: E/AndroidRuntime(20600): java.lang.IllegalStateException: Could not execute method of the activity
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View$1.onClick(View.java:2072)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View.performClick(View.java:2408)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View$PerformClick.run(View.java:8816)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.os.Handler.handleCallback(Handler.java:587)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.os.Handler.dispatchMessage(Handler.java:92)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.os.Looper.loop(Looper.java:123)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.app.ActivityThread.main(ActivityThread.java:4633)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-17 20:01:49.726: E/AndroidRuntime(20600): at dalvik.system.NativeStart.main(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.reflect.InvocationTargetException
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.cording.RecordTab.onMyButtonClick(RecordTab.java:64)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View$1.onClick(View.java:2067)
11-17 20:01:49.726: E/AndroidRuntime(20600): ... 11 more
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.RuntimeException: start failed.
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.media.MediaRecorder.start(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.cording.Recorder.start(Recorder.java:130)
11-17 20:01:49.726: E/AndroidRuntime(20600): ... 15 more

最佳答案

你试过吗:

  1. 先准备剪辑
  2. 确保没有 Activity 录音

关于android - MediaRecorder : start failed -1 mean? 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8173745/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com