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

Kotlin 2.0.0-RC1 Gradle plugin incompatibility #960

Closed
gabrielittner opened this issue Apr 13, 2024 · 1 comment
Closed

Kotlin 2.0.0-RC1 Gradle plugin incompatibility #960

gabrielittner opened this issue Apr 13, 2024 · 1 comment

Comments

@gabrielittner
Copy link
Contributor

When using Kotlin 2.0.0-RC1 with useKsp it will fail with:

java.lang.NoClassDefFoundError: org/jetbrains/kotlin/gradle/plugin/mpp/pm20/util/TargetsKt
        at com.squareup.anvil.plugin.AnvilExtension$useKsp$willHaveDaggerFactories$1.invoke(AnvilExtension.kt:205)
        at com.squareup.anvil.plugin.AnvilExtension$useKsp$willHaveDaggerFactories$1.invoke(AnvilExtension.kt:202)
        at com.squareup.anvil.plugin.AnvilExtension.useKsp$lambda$4(AnvilExtension.kt:202)

The used targets extension method still exists in but the file name changed which leads to the NoClassDefFoundError. Since it's deprecated now and since the replacement is internal it's probably best to just directly replace it

@gabrielittner
Copy link
Contributor Author

Fixed by #961

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

No branches or pull requests

1 participant