如何在同一设备上使用同一个包发布和安装同一个安卓应用的两个版本

如何在同一设备上使用同一个包发布和安装同一个安卓应用的两个版本

问题描述:

我有一个 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?