This is a follow up question. You don't need to, but you can read the first question.
Here is my problem. I created two apks from a single source. Then I published both APKs on the Google Play Store, each as independent apps. Say one app is named Cat and one is named Dog. Now I am having a problem such that if I install Cat on my device, then I cannot install Dog, and vice versa. Any idea why this might be? The error code from the PlayStore is `Error Code: -505).
EDIT: Replying to responses
I thought the suffixes would take care of that. How might I address that problem and still use a single source code for my two APKs?
productFlavors{
training{
applicationIdSuffix ".training"
versionNameSuffix "-training"
}
production{
// applicationIdSuffix ""
// versionNameSuffix ""
}
}
EDIT 2:
Adding an extra manifest for the .training
flavor, resulted in the following error
/Users/myname/StudioProjects/appname/app/src/training/AndroidManifest.xml Error:
Overlay manifest:package attribute declared at AndroidManifest.xml:2:11-50 value=(com.compname.appname.training)
has a different value=(com.compname.appname.training) declared in main manifest at AndroidManifest.xml:2:11-41
Suggestion: remove the overlay declaration at AndroidManifest.xml and place it in the build.gradle:
flavorName {
applicationId = "com.compname.appname.training"
}
Where would this flavorName go exactly?