安装两个不同版本的应用程序apk [英] Install two apks of different versions of application
本文介绍了安装两个不同版本的应用程序apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望在Android设备上同时拥有同一Android应用程序的两个版本,以便于测试。有没有一种方法可以安装两个apk文件,使其在同一设备上共存?
解决方案
使用
输出
在->应用程序->生成- >输出-> apk
I have two versions of the same Android application that I would like to have simultaneously on my Android device for easier testing. Is there a way to install both apk files such that they coexist on the same device?
解决方案
use product flavours
productFlavors {
dev {
applicationIdSuffix ".dev"
versionCode 1
versionName '1.0.0'
}
pro {
applicationIdSuffix ".pro"
versionCode 1
versionName '1.0.0'
}
}
BUILDING APK
Click on gradle on right side of android studio
app --> tasks --> build --> assemble
OUTPUT
generated at --> app --> build --> outputs --> apk
这篇关于安装两个不同版本的应用程序apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文