0

I have generated two libraries(aar) with same package name as they are in different flavors. Now i'm integrating both into one another application, as both aar files have same packagename buildConfig.class got conflict. I fixed this by given multidexEnable = true in applications build.gradle. But when i'm trying to generate signedApk with proguard file, Android studio throwing duplicate entry for buildConfig.class. Any one knows about this?

Error:Execution failed for task 
:app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details
Pandiri Deepak
  • 176
  • 3
  • 15

1 Answers1

0

I think it is the problem with the proguard configuration.check all the libs which you added and make the necessary rules for each in the proguard. you can try again after the clean project and buid again .if its not worked check the progrud rules again .you will get the idea from your logs . Check this link which is a sample configuration : https://gist.github.com/albinmathew/c4436f8371c9c41461ab

Jithu P.S
  • 1,843
  • 1
  • 19
  • 32