Custom build Type not working on androidTest building
According to the documentation only one Build Type is tested. By default it is the debug Build Type, but this can be reconfigured with:
android { testBuildType "demo" }
and your gradle task after sync should look like this:
./gradlew assembleFlavourOneDemoAndroidTest
and be careful there will be NO debug as you pointed out in your description at the end.
assembleFlavourOne
DebugDemoAndroidTest
I'd assume some declarations lack the initWith
instruction -
because any test build rigidly depends on initWith debug
.
When using initWith release
, no test tasks are generated.
debugDemo { initWith debug ...}
The
initWith
property allows you to copy configurations from other build types, then configure only the settings you want to change.