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

It seems dagger doesn't work with the latest kotlin 1.7 beta #3383

Closed
NikolayMetchev opened this issue May 9, 2022 · 2 comments
Closed

It seems dagger doesn't work with the latest kotlin 1.7 beta #3383

NikolayMetchev opened this issue May 9, 2022 · 2 comments

Comments

@NikolayMetchev
Copy link

I filed a bug with Jetbrains, but I suspect the problem lies with the dagger somewhere.
https://youtrack.jetbrains.com/issue/KT-52308

@danysantiago
Copy link
Member

danysantiago commented May 9, 2022

Looks like Dagger needs to update the kotlin-metadata-jvm library to 0.4.0 which supports reading metadata from Kotlin 1.7, current version is 0.3.0, you might be able to work around the issue by forcing an update on the transitive dep, likely depending on it directly, something like this:

dependencies {
  // Not a processor, but forces Dagger to use newer metadata lib
  kapt "org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.4.2"
}

@NikolayMetchev
Copy link
Author

Looks like that is a valid workaround. Thanks @danysantiago

copybara-service bot pushed a commit that referenced this issue May 9, 2022
… upcoming Kotlin 1.7 release.

Fixes: #3383
RELNOTES=Update kotlin-metadata-jvm to 4.0 which support reading metadata from Kotlin 1.7.
PiperOrigin-RevId: 447466528
copybara-service bot pushed a commit that referenced this issue May 9, 2022
… upcoming Kotlin 1.7 release.

Fixes: #3383
RELNOTES=Update kotlin-metadata-jvm to 4.0 which support reading metadata from Kotlin 1.7.
PiperOrigin-RevId: 447466528
TimGW added a commit to TimGW/Wat-kan-ik-aan that referenced this issue Aug 21, 2022
TimGW added a commit to TimGW/Wat-kan-ik-aan that referenced this issue Aug 21, 2022
TimGW added a commit to TimGW/Wat-kan-ik-aan that referenced this issue Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants