Looping Error on Android Emulator

前端 未结 5 1017
无人及你
无人及你 2020-12-01 06:12

I can\'t seem to launch any of my apps in my Android emulator because every ~2 seconds this error pops up, and I believe this is making my app crash...

Note: I\'ve n

相关标签:
5条回答
  • 2020-12-01 06:37

    Although disabling Microphone removed some of the errors , Disabling Quick Search App worked for me as suggested by OOI .

    Settings >> Apps & Notifications >> All Apps >> Google

    enter image description here

    0 讨论(0)
  • 2020-12-01 06:40

    In my case I fixed this first time by adding:

    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    

    in AndroidManifest.xml

    and updating the google.android.gms packages used in the project to the latest version in build.gradle file:

    compile('com.google.android.gms:play-services-analytics:11.0.4') {
        force = true;
    }
    compile('com.google.android.gms:play-services-ads:11.0.4') {
        force = true;
    }
    compile('com.google.android.gms:play-services-gcm:11.0.4') {
        force = true;
    }
    

    UPDATE: Later, after an update of RN from 0.45 RN to 0.53 I found that the RECORD_AUDIO can be removed (if not used) with adding play-services-location and the play-services-base as below:

    compile('com.google.android.gms:play-services-analytics:11.0.4') {
        force = true;
    }
    
    compile('com.google.android.gms:play-services-ads:11.0.4') {
        force = true;
    }
    
    compile('com.google.android.gms:play-services-gcm:11.0.4') {
        force = true;
    }
    
    compile('com.google.android.gms:play-services-location:11.0.4') {
        force = true;
    }
    
    compile('com.google.android.gms:play-services-base:11.0.4') {
        force = true;
    }
    
    0 讨论(0)
  • 2020-12-01 06:41

    That com.google.android.googlequicksearchbox is Google app.

    Simply disabling it in Settings worked for me.

    0 讨论(0)
  • 2020-12-01 06:43

    Android is trying to listen on the microphone, which isn't available on the emulator, so it fills logcat with useless stack traces. To stop this, go to the Settings app in Android, and click:

    1. Apps and notifications
    2. App permissions
    3. Microphone

    Then disallow microphone use for all the apps.

    0 讨论(0)
  • 2020-12-01 07:01

    Here's how to disable the hotword detection ("Ok Google") app in the emulator:

    ./adb shell "su root pm disable com.google.android.googlequicksearchbox"
    
    0 讨论(0)
提交回复
热议问题