Reputation: 809
I tried to install development apk in to my phone who already has the production version from playstore, but I got an error that said "existing package by the same name with a conflicting signature is already installed
"
I tried to rename the package, but it seems doesn't work. so Is there anyway I can install both of version apk in my phone?
Upvotes: 2
Views: 798
Reputation: 24907
You need to change the applicationId
available in your app module's build.gradle
.
Alternatively you can use applicationIdSuffix
under your build configuration as follows:
android {
...
buildTypes {
debug {
applicationIdSuffix '.debug'
...
}
...
}
}
If you are dealing with app flavors, and want to change applicationIdSuffix
as per flavor, you can check my answer from this SO.
Upvotes: 4
Reputation: 4716
android gradle support 'applicationIdSuffix' . you can assign it in your flavor's or buildtype's config .such as :
productFlavors {
dev21 {
minSdkVersion 21
applicationIdSuffix '.dev'
}
dev {
applicationIdSuffix '.dev'
}
}
Upvotes: 2