Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

version 2.6.0 creates a conflict with dagger #190

Open
demonar opened this issue Jun 6, 2019 · 2 comments
Open

version 2.6.0 creates a conflict with dagger #190

demonar opened this issue Jun 6, 2019 · 2 comments
Labels

Comments

@demonar
Copy link

demonar commented Jun 6, 2019

Issue Summary

the moment i update from 2.5.0 to 2.6.0 dagger stops working, i get an error on kapt

Reproduction Steps

create a project that contains kotlin classes that use dagger and try to add classes that use stag.

Expected Behavior

should compile with both libraries as in version 2.5.0

Actual Behavior

breaks with error: "[ComponentProcessor:MiscError] dagger.internal.codegen.ComponentProcessor was unable to process this class because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code."

@anthonycr anthonycr added the bug label Sep 5, 2019
@anthonycr
Copy link
Contributor

anthonycr commented Sep 5, 2019

Try excluding the nullability annotations from the stag library, there must a conflict between the class declarations:

implementation ("com.vimeo.stag:stag-library:2.6.0") {
    exclude group: 'org.jetbrains', module: 'annotations'
}

I think that stag should probably be using org.jetbrains:annotations:17.0.0 instead of org.jetbrains:annotations-java5:16.0.2@jar.

@gjsalot
Copy link

gjsalot commented Jun 25, 2021

Rather you need:

implementation ("com.vimeo.stag:stag-library:2.6.0") {
    exclude group: 'org.jetbrains', module: 'annotations-java5'
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants