如何在同一设备上使用同一个包发布和安装同一个安卓应用的两个版本 [英] How to release and install two versions of the same android app using the same package on the same device

查看:37
本文介绍了如何在同一设备上使用同一个包发布和安装同一个安卓应用的两个版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Android 应用程序,其中包含两个不同的 res 文件夹(res-1、res-2),其中包含所有特定于布局的文件和一个共享包.使用 ant,我一次只能在我的设备上发布和安装该应用程序的两个版本之一.我想要的是同时发布和安装它们,以便能够在我的设备上查看和测试它们.任何建议如何实现这一目标?提前致谢.

I have an android app with two different res folders (res-1, res-2) containing all layout specific and one shared package. Using ant, I can release and install on my device only one of the two versions of the app at a time. What I want is to release and install them both in the same time, in order to be able to see and test them both on my device. Any suggestions how to achieve this ? Thanks in advance.

推荐答案

不可能安装两个包名相同的应用程序,现有的应用程序将被新安装的应用程序覆盖.重命名另一个包将是一个解决方案.也许在 AVD 中测试一个,在设备上测试另一个?

It's impossible to install two apps with the same package name, the existing one will be overwritten with the new installed. Rename the other package would be a solution. Maybe testing one in the AVD and the other one on the device?

这篇关于如何在同一设备上使用同一个包发布和安装同一个安卓应用的两个版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆