Package conflict while publishing similar apps

后端 未结 3 971
栀梦
栀梦 2021-01-16 19:04

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 specifi

相关标签:
3条回答
  • 2021-01-16 19:20

    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).

    My packages looks like:

    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...

    0 讨论(0)
  • 2021-01-16 19:22

    Only thing you need to change as package attribute in your manifest:

    <manifest package="com.example.project" . . . >
    

    Don't forget to fix all your staff in manifest file according to the new package name.

    0 讨论(0)
  • 2021-01-16 19:31

    The package name HAS to be unique on the market. That said, you can still reuse the code you produce simply by making the common code an Android Library. Then each client subproject would have a different manifest specifying different package names.

    Don't forget to create that package and to specify absolute package names for your activities in the manifest.

    0 讨论(0)
提交回复
热议问题