Google Fabric: UiAutomation not connected

后端 未结 4 517
猫巷女王i
猫巷女王i 2021-01-30 13:02

After deployment of an app to Google Play Beta I see next issue in Crashlytics (6 - 7 users are affected)

Fatal Exception: java.lang.IllegalStateException: UiAut         


        
相关标签:
4条回答
  • 2021-01-30 13:16

    It seems that this crash is related to UI testing in your app. If you don't have any UI testing and there are only default settings which added automatically during creating the project, you should remove from your build.gradle the line testInstrumentationRunner in defaultConfig

      defaultConfig {
       ....
       testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    } 
    

    and androidTestCompile, testCompile in dependencies

    dependencies {
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', 
    {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'
    ...
    
    0 讨论(0)
  • 2021-01-30 13:22

    It seems like nothing to worry about (don't rely on accepted answer and don't remove your tests) because crashes have been reported on creating pre-launch report for google play store where some UI automation tests were executed. If you track devices on which this error has occurred - you'll see that all paths leads to pre-launch report.

    You can find out more about pre-launch report here

    0 讨论(0)
  • 2021-01-30 13:37

    One thing is sure: you have an issue on UI. In most cases this occurs when you show a progress dialog that keeps being displayed for too much time. In this case the Google crawler goes in timeout and raises an exception. My advice is: be sure to not block UI with infinite dialogs.

    0 讨论(0)
  • 2021-01-30 13:39

    The funny thing is that I get this crash while my app is being tested by google before publishing. I really don't know what google team is doing.

    0 讨论(0)
提交回复
热议问题