Android Studio-检索Android设备目录时出错

时间:2019-06-18 06:00:51

标签: android unit-testing android-studio kotlin android-instrumentation

当我尝试运行仪器测试时,我遇到了错误。

还可以从Android Studio获得对话框,

Error retrieving android device catalog
Testing started at 11:49 ...
06/18 11:49:34: Launching addition_isCorrect() 
$ adb push /Users/----/app/build/outputs/apk/debug/app-debug.apk /data/local/tmp/com.----
$ adb shell pm install --full -t -r "/data/local/tmp/com.----" 
Success 
APK installed in 1 s 898 ms 
No apk changes detected since last installation, skipping installation of /Users/---/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
Running tests

$ adb shell am instrument -w -r   -e debug false -e class 'com.---.DatabaseTest#addition_isCorrect' com.---.test/android.support.test.runner.AndroidJUnitRunner
Client not ready yet. 
Started running tests

Tests ran to completion.

如何摆脱这个错误?

0 个答案:

没有答案