Java – How to create 2 jars with the same name for pro and lite in Android/Eclipse

How to create 2 jars with the same name for pro and lite in Android/Eclipse… here is a solution to the problem.

How to create 2 jars with the same name for pro and lite in Android/Eclipse

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

Now once I install the

free version, if I install the pro version, I see that the new jar (pro reg=1) does not replace the old one

How?

Solution

There cannot be 2 jars with the same name. You need to give them different names and load them dynamically. To load the jar dynamically, you can view it this post

Related Problems and Solutions