I tried your suggestion, but i can't get it to work.
I keep getting these type of error messages when syncing the gradle file
(envTest and Mediaarc are two flavors, Debug is the build type).
I checked that 'envTestMediaarcDebug' is a proper build flavor.
In build.gradle there is this line in the dependencies:
envTestMediaarcDebugCompile project(path: ':libraries:android-jenga-rest', configuration: 'mediaarcDebug')
When syncing the build.gradle, it gives this error:
Build script error, unsupported Gradle DSL method found: 'envTestMediaarcDebugCompile()'!
I tried with and without the 'Debug', i tried 'compileEnvTestMediaarcDebug' instead, (with and without the 'Debug' part)...
It always give the DSL method not found error.
I probably do something wrong, but I can't figure out what....