Reputation: 63
last time I tried to migrate from kapt to ksp, all libraries with no problem instead of dagger... see libraries
dagger2_version '2.47'
I got the error logs: e: [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. e: Error occurred in KSP, check log for detail
Anyone has similar problem? I cannot find nothing with that
Upvotes: 6
Views: 1884
Reputation: 148
It worked for me, when I updated dagger and dagger-compiler and removed android support:
implementation 'com.google.dagger:dagger:2.48'
ksp 'com.google.dagger:dagger-compiler:2.48'
// Android support removed
//implementation 'com.google.dagger:dagger-android:2.48'
//implementation 'com.google.dagger:dagger-android-support:2.48'
//ksp 'com.google.dagger:dagger-android-processor:2.48'
Upvotes: 2