I have a project with three productFlavors and three buildTypes, and for every resultant app, the "package" name is different. My gradle file looks like this:
productFlavors {
flavor1 {
applicationId "com.example.flavor1"
}
flavor2 {
applicationId "com.example.flavor1"
}
flavor3 {
applicationId "com.example.flavor1"
}
}
buildTypes {
debug {
applicationIdSuffix ".dev"
versionNameSuffix "-dev"
}
integration {
applicationIdSuffix ".int"
versionNameSuffix "-int"
}
release {
}
}
I have registered for an API key in the Google Developers Console with the package name com.example.flavor1.dev, and added the key to my manifest, but when I try to use the service, I receive an error with the message PLACES_API_INVALID_APP, so I assume something must be wrong with the package name, but I don't know what. Has someone ever had an issue like this?
Thanks!