[英]How to Install Apk Development and Production Version in the same phone?
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. 我尝试将开发apk安装到我的手机中,该手机已经具有playstore的生产版本,但是出现一个错误,提示“
existing package by the same name with a conflicting signature is already installed
”,但我尝试重命名该软件包,但是似乎不起作用。 so Is there anyway I can install both of version apk in my phone? 所以无论如何我可以在手机中同时安装两个版本的apk吗?
You need to change the applicationId
available in your app module's build.gradle
. 您需要更改
applicationId
程序模块的build.gradle
可用的build.gradle
。
Alternatively you can use applicationIdSuffix
under your build configuration as follows: 另外,您可以在构建配置下使用
applicationIdSuffix
,如下所示:
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 . 如果您正在处理应用程序样式,并且想要根据样式更改
applicationIdSuffix
,则可以从SO中检查我的答案。
android gradle support 'applicationIdSuffix' . android gradle支持'applicationIdSuffix'。 you can assign it in your flavor's or buildtype's config .such as :
您可以在您的flavor或buildtype的配置中分配它,例如:
productFlavors {
dev21 {
minSdkVersion 21
applicationIdSuffix '.dev'
}
dev {
applicationIdSuffix '.dev'
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.