开发者

How to release two android apps with same source code but different package names without refactor

开发者 https://www.devze.com 2023-04-02 12:36 出处:网络
I am looking for ways to release two android apps with same source code without any changes but with two different package name without refactoring.

I am looking for ways to release two android apps with same source code without any changes but with two different package name without refactoring.

Ho开发者_运维知识库w do I do this?


You need to:

  1. Refactor code to change package name in a IDE (like a Idea or Eclipse)
  2. Change package name in AndroidManifest.xml
  3. Build an sign the application.

What exactly is causing a problem?


when ever you change package name to Refactor but in R file will not package name so and android market consider R file package name.

Change package name in AndroidManifest.xml file now R package name will automatic change. now change old src package name new one. make sure activity is proper mapping.


What is bothering you? Just go ahead and release it with different package names. Make sure you make suitable refactoring in the code as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消