I am trying to make a new build type that has a different resource directory than the existing debug type. This is the code that I add to my build.gradle.
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {
applicationIdSuffix '.debug'
}
Test {
applicationIdSuffix '.debug'
}
}
When building the'test' type Android Studio throws this error.
I've found posts that suggests including a some signing configuration in the gradle file.
signingConfigs{
unsigned{
storePassword = ""
keyAlias = ""
keyPassword = ""
}
buildTypes{
...
test {
signingConfig signingConfigs.unsigned
}
...
}
But adding...
signingConfig signingConfigs.unsigned
...results in an error as the "signingConfig" datatype can't be found.