我的应用程序已停止android studio模拟器上的错误

时间:2017-10-12 03:05:36

标签: android android-studio

当我尝试在Android studio'模拟器上运行我的应用程序时,我收到此消息"应用已停止"。

这是logcat:

2644-4713/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)

我该如何解决这个问题?谢谢。

1 个答案:

答案 0 :(得分:0)

 Error code: 393238 | Buffer overflow, no available space.

你的目标版本是android sdk吗?也许24? - >您尝试下拉版本目标版本adnroid sdk 23或更低

参考更多信息关注链接: android.os.FileUriExposedException:file:///storage/emulated/0/test.txt通过Intent.getData()暴露在app之外