LSParanoid icon indicating copy to clipboard operation
LSParanoid copied to clipboard

java.util.zip.ZipException: duplicate entry Error with Dagger Hilt.

Open developersancho opened this issue 1 year ago • 9 comments
trafficstars

Hi, when i build project have no error but when i run the project that using dagger hilt get error on below.

Task :app:lsparanoidDebug FAILED Execution failed for task ':app:lsparanoidDebug'. java.util.zip.ZipException: duplicate entry: dagger/hilt/internal/aggregatedroot/codegen/_com_tom_Application.class

Do you have any Solution for this Issue?

developersancho avatar Nov 22 '23 21:11 developersancho

any update?

normanaspx avatar Feb 28 '24 16:02 normanaspx

Did you manage to solve it?

edyknd avatar Mar 21 '24 17:03 edyknd

Same Issue Any updates?

nawafab avatar Mar 27 '24 10:03 nawafab

hi @nawafab @edyknd @normanaspx please install to Android Studio Koala. Then try again. I didn't get any error.

developersancho avatar Aug 16 '24 07:08 developersancho

In my case I have to use gradle 8.5 (error if gradle 8.4)

distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip

saleho27 avatar Feb 26 '25 05:02 saleho27

same here

tao1 avatar Apr 04 '25 15:04 tao1

Any updates? @saleho27 @developersancho

george-georgy avatar May 01 '25 15:05 george-georgy

Same Issue, Any updates?

ehabcomm2012 avatar May 11 '25 21:05 ehabcomm2012

I ran into the same problem.

java.util.zip.ZipException: duplicate entry: module-info.class

it happens when I set includDependencies = true

In my app-level build.gradle.kts, I had the following excludes:

resources.excludes.add("META-INF/LICENSE.md")
resources.excludes.add("META-INF/LICENSE-notice.md")

in my case after removing those lines, the build worked fine.

AbolfazlHaghpanah avatar May 14 '25 11:05 AbolfazlHaghpanah