发布类似应用时包冲突 [英] Package conflict while publishing similar apps

查看:28
本文介绍了发布类似应用时包冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 android 市场上发布两个功能相似且使用相似代码库的应用程序.这些应用程序唯一不同的地方是客户端特定的图标和一些字符串.

I need to publish two applications in android market which are similar in functionality and uses similar code base. The only places where these apps differ is client specific icons and some strings.

在尝试发布时,我的应用似乎遇到了包冲突.我应该怎么做才能避免包冲突.我在网上做了一些搜索,看起来我必须更改我的类的基本包,这听起来很奇怪.我还有其他选择吗?

When trying to publish, it looks like my apps are getting package conflict. What should I do to avoid package conflict. I did some search on net and it looks like I have to change base package of my classes which just sounds weird. Is there any other option that I am missing.

推荐答案

应用由包名标识.因此包名需要是唯一的.这就是为什么每个人都使用一些域名来创建一个独特的包(域也是唯一的).

The app is identified by the package name. Therefor the package name needs to be unique. Thats why everybody uses some domain names for that to create a unique package (domains are unique, too).

我的包裹看起来像:

org.shufflecity.android;
org.shufflecity.server;

您还可以为您拥有的每个客户端添加一个子包:

You can also add a subpackage for each client you have:

org.shufflecity.clientname.android

这应该可以解决问题...

That should do the trick...

这篇关于发布类似应用时包冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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