MediaRecorder: 启动失败 -1 是什么意思?
找不到 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
Couldn't find what the MediaRecorder: start failed -1 error message means.
I'm getting it when I call MediaRecorder.start();
Thankyou for your time.
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过:
Did you try: