FastLane Screengrab for androids

843 Views Asked by At

I'm trying to integrate fastlane screengrab into the android application and i'm running into the following issue when i execute the command. 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

There are 1 best solutions below

0
On

Just add testInstrumentationRunner into the build.gradle file

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

And run the command:

fastlane screengrab