2017-10-07 80 views
1

Android應用程序在Android模擬器完全運行,但是當我在真實設備安裝它,然後將其安裝和完全展開,但是當我RecyclerView元素上點擊,然後它沒有任何錯誤自動停止。應用在模擬器中運行,但不工作的實際設備

這裏是日誌貓:

10-07 23:59:26.109 2257-13892/? I/AudioController: internalShutdown 
10-07 23:59:26.116 2257-2257/? I/MicroDetector: Keeping mic open: false 
10-07 23:59:26.116 2257-2257/? I/MicroDetectionWorker: #onError(false) 
10-07 23:59:26.116 2257-13891/? I/DeviceStateChecker: DeviceStateChecker cancelled 
10-07 23:59:31.121 2257-2257/? I/MicroDetectionWorker: Micro detection mode: [mDetectionMode: [1]]. 
10-07 23:59:31.121 2257-2257/? I/AudioController: Using mInputStreamFactoryBuilder 
10-07 23:59:31.125 2257-13897/? I/MicroRecognitionRunner: Starting detection. 
10-07 23:59:31.125 2257-10935/? I/MicrophoneInputStream: mic_starting [email protected] 
10-07 23:59:31.127 1411-13900/? I/AudioFlinger: AudioFlinger's thread 0xa8603140 ready to run 
10-07 23:59:31.132 1411-1411/? E/AudioFlinger: not enough memory for AudioTrack size=131296 
10-07 23:59:31.132 1411-1411/? D/MemoryDealer: AudioTrack (0xa8f9cef0, size=4194304) 
    0: 0xa8f9cf30 | 0x00000000 | 0x000200E0 | A 
    1: 0xa8f9cf50 | 0x000200E0 | 0x000200E0 | A 
    2: 0xa8a7f1e0 | 0x000401C0 | 0x000200E0 | A 
    3: 0xa8a7f190 | 0x000602A0 | 0x000200E0 | A 
    4: 0xa8a7f450 | 0x00080380 | 0x000200E0 | A 
    5: 0xa8a7f650 | 0x000A0460 | 0x000200E0 | A 
    6: 0xa8689090 | 0x000C0540 | 0x000200E0 | A 
    7: 0xa8a7f900 | 0x000E0620 | 0x000200E0 | A 
    8: 0xa8a7fa50 | 0x00100700 | 0x000200E0 | A 
    9: 0xa8a7fbb0 | 0x001207E0 | 0x000200E0 | A 
    10: 0xa8a7f780 | 0x001408C0 | 0x000200E0 | A 
    11: 0xa8a7fe90 | 0x001609A0 | 0x000200E0 | A 
    12: 0xa8a7ffc0 | 0x00180A80 | 0x000200E0 | A 
    13: 0xa68fd060 | 0x001A0B60 | 0x000200E0 | A 
    14: 0xa8689190 | 0x001C0C40 | 0x000200E0 | A 
    15: 0xa68fd330 | 0x001E0D20 | 0x000200E0 | A 
    16: 0xa68fd4c0 | 0x00200E00 | 0x000200E0 | A 
    17: 0xa68fd6a0 | 0x00220EE0 | 0x000200E0 | A 
    18: 0xa68fd840 | 0x00240FC0 | 0x000200E0 | A 
    19: 0xa68fdae0 | 0x002610A0 | 0x000200E0 | A 

    10-07 23:59:31.132 1411-1411/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block? 
    10-07 23:59:31.133 2257-10935/? E/AudioRecord: AudioFlinger could not create record track, status: -12 
    10-07 23:59:31.137 2257-10935/? E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12. 
    10-07 23:59:31.137 2257-10935/? E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object. 
    10-07 23:59:31.137 2257-10935/? I/MicrophoneInputStream: mic_started [email protected] 
    10-07 23:59:31.137 2257-10935/? E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded 
    10-07 23:59:31.137 2257-2257/? I/MicroDetectionWorker: onReady 
    10-07 23:59:31.152 2257-10935/? I/MicrophoneInputStream: mic_close [email protected] 
    10-07 23:59:31.152 2257-13897/? I/MicroRecognitionRunner: Detection finished 
    10-07 23:59:31.153 2257-13897/? W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream 
    10-07 23:59:31.153 2257-2555/? I/MicroRecognitionRunner: Stopping hotword detection. 
    10-07 23:59:31.153 2257-13897/? 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) 
    10-07 23:59:31.153 2257-13897/? I/AudioController: internalShutdown 
    10-07 23:59:31.154 2257-2257/? I/MicroDetector: Keeping mic open: false 
    10-07 23:59:31.154 2257-2257/? I/MicroDetectionWorker: #onError(false) 
    10-07 23:59:31.155 2257-13896/? I/DeviceStateChecker: DeviceStateChecker 
    cancelled 

回答

-1

看,這個錯誤可以是任何東西。你的分析需要變得更好,嘗試搜尋有關此主題的一些信息:

  • 使用安卓目標版本
  • 用於支持包和它們應用時
  • 使用Android的音頻包和版本
  • Android手機的細節

希望這可以幫助你

+1

@Ravi桑卡顯示我們RecyclerView和你MIG代碼提到真實的設備信息規格 – Grendel

相關問題