Monday, 2 November 2020

Why I receive Interface ... does not have constructors (I have Kotlin and java classes)?

Here is my Kotlin code and when I build I receive Interface ImageSizeProvider does not have constructors

interface ImageSizeProvider {
    val spec: ImageSizeSpec
}

@FragmentScope
class ImageSizeProviderImpl @Inject constructor(
    private val mResources: Resources
) : ImageSizeProvider {
    ///.....
}
and here is my java dagger interface ( I don't want to migrate this to Kotlin yet)




    @Module
public interface XXXModule {
    @Binds
    @FragmentScope
    ImageSizeProvider bindImageSizeProvider(ImageSizeProviderImpl imageSizeProvider);



from Why I receive Interface ... does not have constructors (I have Kotlin and java classes)?

No comments:

Post a Comment