Android模拟器上的循环错误

我似乎无法在Android模拟器中启动任何应用程序,因为每隔约2秒钟就会弹出此错误,并且我相信这会使我的应用程序崩溃…

注意:我从来没有尝试过录制音频,我认为这是尝试做的…为什么显示此声音?尽管我试图用无法正常工作的输入流向JPCT-AE打开3D模型!

错误:

04-01 21:02:29.798 2160-2160/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: Micro detection mode: [mDetectionMode: [1]].

04-01 21:02:29.798 2160-2160/com.google.android.googlequicksearchbox:search I/AudioController: Using mInputStreamFactoryBuilder

04-01 21:02:29.805 2160-3055/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Starting detection.

04-01 21:02:29.805 2160-2204/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.z.c@652d8ac

04-01 21:02:29.806 1302-1640/? W/APM_AudioPolicyManager: getInputForAttr() failed opening input: samplingRate 16000, format 1, channelMask 10

04-01 21:02:29.806 2160-2204/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 441, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0

04-01 21:02:29.807 2160-2204/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.

04-01 21:02:29.807 2160-2204/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.

04-01 21:02:29.807 2160-2204/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.z.c@652d8ac

--------- beginning of system

04-01 21:02:29.808 2160-2204/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded

04-01 21:02:29.809 2160-2160/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady

04-01 21:02:29.844 2160-2204/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.z.c@652d8ac

04-01 21:02:29.844 2160-3055/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Detection finished

04-01 21:02:29.844 2160-3055/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream

04-01 21:02:29.845 2160-2353/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Stopping hotword detection.

04-01 21:02:29.846 2160-3055/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)

com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream

at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342)

at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)

at java.lang.Thread.run(Thread.java:761)

at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)

Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.

at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531)

at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555)

at java.io.InputStream.read(InputStream.java:101)

at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362)

at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)

at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)

at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 

at java.lang.Thread.run(Thread.java:761) 

at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85) 

04-01 21:02:29.846 2160-3055/com.google.android.googlequicksearchbox:search I/AudioController: internalShutdown

04-01 21:02:29.847 2160-2160/com.google.android.googlequicksearchbox:search I/MicroDetector: Keeping mic open: false

04-01 21:02:29.847 2160-2160/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)

04-01 21:02:29.847 2160-3054/com.google.android.googlequicksearchbox:search I/DeviceStateChecker: DeviceStateChecker cancelled

如我之前所说,这每隔约2秒钟就会弹出…是什么原因引起的?我尝试过多次重启模拟器,并且这种情况一直持续下去!!

编辑:我也删除并重新创建了模拟器,并且仍然存在相同的错误

请帮我!!在此先感谢所有:)

回答:

Android正在尝试监听麦克风,而模拟器上没有该麦克风,因此它在logcat中填充了无用的堆栈跟踪信息。要停止此操作,请转到Android中的“设置”应用,然后单击:

  1. 应用和通知
  2. 应用权限
  3. 麦克风

然后,禁止将麦克风用于所有应用程序。

以上是 Android模拟器上的循环错误 的全部内容, 来源链接: utcz.com/qa/427507.html

回到顶部