How to create 2 jars for pro and lite with the same name in andorid / eclipse

I have a pro version and a free version. What I plan to do is put my code in a jar (lib) and have the flag reg = 1 in the code itself. And I will build 2 jars, one with reg = 0 for free, and the other with reg = 1 for pro.

Now, when I have free installed, if I install pro, I see that the new jar (pro reg = 1) has not replaced the old one,

How to do it?

+4
source share
1 answer

You cannot have 2 cans with the same name. You need to give them different names and load them dynamically. To dynamically load the jar, you can see this post

0

All Articles