You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type com.squareup.test.AssistedService may only contain one injected constructor. Found: [@dagger.assisted.AssistedInject com.squareup.test.AssistedService, @dagger.assisted.AssistedInject com.squareup.test.AssistedService]
but will crash in KSP processing with the below trace. Note the message appears to be correct, but the crash is cause and reported after it's logged.
This is with Dagger version 2.47.
e: Error occurred in KSP, check log for detail
e: [ksp] /var/folders/nv/96k28mh96ml0g6y4gxkpjfcw0000gn/T/Kotlin-Compilation5455861261926387550/sources/src/main/java/com/squareup/test/Source0.kt:6: Type com.squareup.test.AssistedService may only contain one injected constructor. Found: [@dagger.assisted.AssistedInject com.squareup.test.AssistedService(int, String), @dagger.assisted.AssistedInject com.squareup.test.AssistedService(String)]
e: [ksp] java.lang.IllegalArgumentException: expected one element but was: <<init>, <init>>
at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:323)
at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:263)
at dagger.internal.codegen.binding.AssistedInjectionAnnotations.assistedInjectAssistedParameters(AssistedInjectionAnnotations.java:257)
at dagger.internal.codegen.processingstep.AssistedInjectProcessingStep$AssistedInjectValidator.validate(AssistedInjectProcessingStep.java:60)
at dagger.internal.codegen.processingstep.AssistedInjectProcessingStep.process(AssistedInjectProcessingStep.java:51)
at dagger.internal.codegen.processingstep.AssistedInjectProcessingStep.process(AssistedInjectProcessingStep.java:35)
at dagger.internal.codegen.processingstep.TypeCheckingProcessingStep.lambda$process$0(TypeCheckingProcessingStep.java:82)
at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:196)
at dagger.internal.codegen.processingstep.TypeCheckingProcessingStep.process(TypeCheckingProcessingStep.java:70)
at dagger.internal.codegen.processingstep.TypeCheckingProcessingStep.process(TypeCheckingProcessingStep.java:48)
at dagger.spi.shaded.androidx.room.compiler.processing.XProcessingStep.process(XProcessingStep.kt:59)
at dagger.spi.shaded.androidx.room.compiler.processing.CommonProcessorDelegate.processRound(XBasicAnnotationProcessor.kt:130)
at dagger.spi.shaded.androidx.room.compiler.processing.ksp.KspBasicAnnotationProcessor.process(KspBasicAnnotationProcessor.kt:62)
The text was updated successfully, but these errors were encountered:
The following code snippet
will correctly error in apt with this message
but will crash in KSP processing with the below trace. Note the message appears to be correct, but the crash is cause and reported after it's logged.
This is with Dagger version 2.47.
The text was updated successfully, but these errors were encountered: