I am new to android programming. I just released my app. All works well and everything. However I was thinking of making a new flavor (free) version of the app by using the flavor feature of gradle.
Now all the tutorials and example of flavors that i see tell about storing exclusive classes of different flavors separate, for instance
com.example.myapp.free
com.example.myapp.paid
and keep the common files in main. Now my issue is, since i have already released the app, I cannot change the package name of my app to the .paid name as mentioned above. However my free version will implement the same class with different logic. If I do this, I get the duplicate class:com... error
How do i get around this situation?