Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 files found with path 'META-INF/com.google.dagger_dagger.version'. #789

Closed
atick-faisal opened this issue Jun 1, 2022 · 9 comments · Fixed by #790 or #794
Closed

2 files found with path 'META-INF/com.google.dagger_dagger.version'. #789

atick-faisal opened this issue Jun 1, 2022 · 9 comments · Fixed by #790 or #794
Labels
bug Bug that is caused by the library

Comments

@atick-faisal
Copy link

atick-faisal commented Jun 1, 2022

After updating to 1.14.0 from 1.10.2 getting this error during the build:
2 files found with path 'META-INF/com.google.dagger_dagger.version'.

AGP version: 7.2.1
Dagger-Hilt Version: 2.42

@atick-faisal atick-faisal added the bug Bug that is caused by the library label Jun 1, 2022
@dariuszseweryn
Copy link
Owner

Looking into it

@dariuszseweryn
Copy link
Owner

Hey @atick-faisal — could you check the 1.14.1-SNAPSHOT release if it fixes your problem?

@atick-faisal
Copy link
Author

Hello @dariuszseweryn. Thanks for the reply. I added the following in my build.gradle file:
implementation("com.polidea.rxandroidble2:rxandroidble:1.14.1-SNAPSHOT")

Getting this error:

> Could not resolve com.polidea.rxandroidble2:rxandroidble:1.14.1-SNAPSHOT.
         > Unable to load Maven meta-data from https://jitpack.io/com/polidea/rxandroidble2/rxandroidble/1.14.1-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://jitpack.io/com/polidea/rxandroidble2/rxandroidble/1.14.1-SNAPSHOT/maven-metadata.xml'.
               > Read timed out

Am I doing something wrong?

@dariuszseweryn
Copy link
Owner

@atick-faisal
Copy link
Author

Thank you @dariuszseweryn. This solved the issue. Build completed successfully.

@dariuszseweryn
Copy link
Owner

Awesome, thank you for verifying

@sdex
Copy link

sdex commented Jun 14, 2022

@dariuszseweryn it looks like the issue is back in 1.15.0:

> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 2 files found with path 'META-INF/com.google.dagger_dagger.version' from inputs:
      - /home/runner/.gradle/caches/modules-2/files-2.1/com.google.dagger/dagger/2.42/e0c9267991f4c4e167fc612947a948ffd27f3017/dagger-2.42.jar
      - /home/runner/.gradle/caches/modules-2/files-2.1/com.polidea.rxandroidble2/dagger-library-shadow/1.15.0/5b6332a4bf2e3b5332529e05488f529c6bc398d3/dagger-library-shadow-1.15.0.jar
     Adding a packagingOptions block may help, please refer to
    [ https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ResourcesPackagingOp](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ResourcesPackagingOptions)
     for more information

@dariuszseweryn
Copy link
Owner

Good catch – fix is on the way

@dariuszseweryn
Copy link
Owner

1.15.1-SNAPSHOT should be OK. Regular 1.15.1 should be available shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is caused by the library
Projects
None yet
3 participants