2017-12-17 117 views
18

Sau khi triển khai các ứng dụng Google Play Beta Tôi thấy vấn đề tiếp theo trong Crashlytics (6-7 người dùng bị ảnh hưởng)Google Vải: UiAutomation not connected

Fatal Exception: java.lang.IllegalStateException: UiAutomation not connected! 
    at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:971) 
    at android.app.UiAutomation.disconnect(UiAutomation.java:237) 
    at android.app.Instrumentation.finish(Instrumentation.java:222) 
    at android.support.test.runner.MonitoringInstrumentation.finish(MonitoringInstrumentation.java:351) 
    at android.support.test.runner.AndroidJUnitRunner.finish(AndroidJUnitRunner.java:405) 
    at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:394) 
    at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1960) 

Dường như đó là các thiết bị kiểm tra google. Mọi ý tưởng về sửa lỗi?

+0

Chúng tôi liên hệ với Bộ phận hỗ trợ vải hai ngày trước, không có câu trả lời cho ... – Vitalii

+0

bất kỳ tin tức nào về điều này? Tương tự ở đây. Cảm ơn. – azurh

+0

không có gì mới, họ không trả lời – Vitalii

Trả lời

1

Dường như vụ tai nạn này liên quan đến kiểm tra giao diện người dùng trong ứng dụng của bạn. Nếu bạn không có bất kỳ thử nghiệm giao diện người dùng và chỉ có các thiết lập mặc định tự động thêm vào khi tạo dự án, bạn nên loại bỏ từ build.gradle bạn dòng testInstrumentationRunner trong defaultConfig

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

androidTestCompile, testCompile trong các phụ thuộc

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' 
... 
+1

còn nếu u có các xét nghiệm oO: D –

+0

Thực vậy thì sao bạn có thử nghiệm không? Tôi không tin rằng điều này sẽ xảy ra đối với người dùng trung bình như trong trường hợp của họ, không nên viện dẫn. Tôi tin rằng nó giới hạn trong các thiết bị thử nghiệm của Google, tôi muốn xác nhận về điều này mặc dù ... –