I have created a new build type called \'bitrise\' based on the \'debug\' build variant. The instrumented androidTests build and run fine when using the \'debug\' build variant
You can add this to your build.gradle file
android { testBuildType "MycompanyBitrise" // or whatever build varient where you are getting such error }