I get this error when I am attempting to migrate f...
# dagger
h
I get this error when I am attempting to migrate from kapt to ksp, version 2.48 of dagger:
[ksp] Cannot use legacy dagger.spi.BindingGraphPlugin while compiling with KSP: Dagger/Android/DuplicateAndroidInjectors. Either compile with KAPT or migrate the plugin to implement dagger.spi.model.BindingGraphPlugin.
Anyone familiar with this issue?
n
Are you using the old dagger.android artifacts? I vaguely remember seeing somewhere those wouldn't be migrated to KSP but I could be wrong
h
Could you specifiy what you mean by the old dagger.android artifacts?
n
https://dagger.dev/dev-guide/android.html Do you have any of these artifacts in your build.gradle file
https://github.com/google/dagger/issues/4044 I lied it's not supported now but will be in a future release
h
Yeah, got these defined:
Copy code
dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = "dagger" }
dagger-android = { module = "com.google.dagger:dagger-android", version.ref = "dagger" }
dagger-androidSupport = { module = "com.google.dagger:dagger-android-support", version.ref = "dagger" }
dagger-androidProcessor = { module = "com.google.dagger:dagger-android-processor", version.ref = "dagger" }
Ok, so if I understand correctly these are not supported with KSP yet?
n
Correct. If you're using the dagger.android APIs you have to wait for a future Dagger release, you can follow that ticket to see when that happens.
1
h
I see! Thank's for helping me out 🙂
🫡 1
115 Views