Just like the example here I am extending my build types to add staging:
android {
buildTypes {
release {
minifyEnabled false
-
Been here, done that :P
You'll need to specify matchingFallback
with the Android Gradle Plugin 3.0.0 for the plugin to know which fallback build type of library to use when being compiled with app code in case a certain build type defined in your app is not found in library.
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
applicationIdSuffix '.debug'
}
staging {
initWith release
applicationIdSuffix '.staging'
matchingFallbacks = ['release']
}
}
More info here: Migrate to Android Plugin for Gradle 3.0.0.
讨论(0)
- 热议问题