我试图将fastlane screengrab整合到Android应用程序中,当我执行命令时,我遇到了以下问题。 screengrab。
[16:30:42]: ▸ INSTRUMENTATION_STATUS: id=ActivityManagerService [16:30:42]: ▸ INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.example.android.test/android.support.test.runner.AndroidJUnitRunner} [16:30:42]: ▸ INSTRUMENTATION_STATUS_CODE: -1 [16:30:42]: ▸ android.util.AndroidException: INSTRUMENTATION_FAILED: com.example.android.test/android.support.test.runner.AndroidJUnitRunner
答案 0 :(得分:2)
只需将testInstrumentationRunner添加到build.gradle文件
即可android {
...
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
}
运行命令:
fastlane screengrab