[英]Development and Production versions of the same app on a single device
Please advice how to come over the problem of need to have two installs of the same application on one device? 请告知如何解决需要在一台设备上安装两个相同应用程序的问题? Need one for developing and the one which is in production for testing and using.
需要一个用于开发和一个用于测试和使用的生产。 What is the easy way of doing so?
这样做的简单方法是什么? I tried to change package name manually but this lead to pain when merging.
我试图手动更改包名称,但这会导致合并时出现问题。
You can easily change the packagename if you use the ADT v 20. Just right click on the project and go to Rename Application Package under android tools. 如果您使用ADT v 20,您可以轻松更改软件包名称。只需右键单击该项目,然后转到Android工具下的重命名应用程序包。 Eclipse will handle every change for you.
Eclipse将为您处理每一项变更。
As far as I know of you can't install 2 apps with the same package name (I could be wrong)... 据我所知,你不能安装2个具有相同包名的应用程序(我可能是错的)......
So refactoring/renaming your package name is the best solution, this is easy in the latest versions of the SDK so make sure you update... You could also try refactoring using ant but I haven't tried renaming a package using ant. 所以重构/重命名你的包名是最好的解决方案,这在最新版本的SDK中很容易,所以请确保你更新...你也可以尝试使用ant进行重构,但我还没有尝试使用ant重命名包。
EDIT: same answer like Ahmad + typo fixed 编辑:像艾哈迈德+错字修复相同的答案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.