简体   繁体   English

在单个设备上开发和生产相同应用程序的版本

[英]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.

相关问题 如何开发相同应用程序的生产版和测试版,以便在同一设备中安装 - How to develop a production and beta versions of the same application for installing in the same device 在同一设备上安装不同版本的Phonegap应用程序? - Install different versions of Phonegap app on same device? 应用在生产时崩溃,但在开发中却没有 - App crashes on production but not in development 如何在一台(根)设备上安装同一 Android 应用程序的两个版本? - How to install two versions of the same Android app on one (rooted) device? 一个应用程序的开发和生产版本 - development and production version of one app Android应用程序的Beta测试人员如何将生产和Beta应用程序安装在同一设备上? - How can a Beta-tester of android applications to have installed both production and beta app in the same device? 无法在用于开发的同一设备上安装来自 Play 商店的 Beta 版应用 - Can't install beta app from Play Store on the same device that was used for development 在设备上同时安装 2 个不同版本的 Flutter? - Installing 2 separate Versions of Flutter at the same time on a Device? 相同的应用程序适用于不同的Android版本 - Same app for different android versions 发布相同的应用程序但有两个版本 - Publishing same app but two versions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM