Answer the question
In order to leave comments, you need to log in
How to correctly get different package names when compiling Gradle?
Actually, there was a need to have two different package names (debug \ release).
GAPS, Firebase and other features are connected in the application (if necessary, I will clarify what exactly is there).
I never thought that it could turn into a headache, but still.
The solution that I found, and it seemed to me more than elegant:
buildTypes {
release {
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
applicationIdSuffix '.debug'// вот это добавилось
versionNameSuffix '-DEBUG'// и это добавилось
debuggable true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Error:Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name '**.******.********.debug'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question