我正在尝试通过手机上的文件管理器安装我的应用程序之一的新签名发行版本,但收到此错误消息“未安装应用程序,该包与同名的现有包冲突”。我已经从 google play Store 安装了以前的版本,两个 apk 都是从同一个密钥库签名的。
上一个版本的应用程序构建配置
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.xxx.xxx"
minSdkVersion 16
targetSdkVersion 22
versionCode 19
versionName "1.1.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Run Code Online (Sandbox Code Playgroud)
新版本App Build Config
compileSdkVersion 27
defaultConfig {
applicationId "com.xxx.xxx"
minSdkVersion 16
targetSdkVersion 27
versionCode 20
versionName "1.2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Run Code Online (Sandbox Code Playgroud)
我知道卸载以前的版本后,我将能够安装该应用程序的新版本,但是我的应用程序的用户是否能够在不从 Play 商店卸载以前版本的情况下更新该应用程序?如果不是我怎样才能避免这种情况?
更新
Play 商店中有两份 apk 副本 1. 原始副本(您上传的) 2. 派生副本(Google play 通过修改您的 apk 创建的,并且此 apk 分发给所有人)。
您可以从这里下载这两个应用程序
Google Play 控制台 -> Artifact Library -> 点击下载按钮 -> 现在 Google Play …