FastLane Screengrab for theroroids

时间:2016-06-14 20:39:27

标签: android-studio fastlane screen-grab

我试图将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

1 个答案:

答案 0 :(得分:2)

只需将testInstrumentationRunner添加到build.gradle文件

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

运行命令:

  

fastlane screengrab