hello :wave::skin-tone-2: , I've got a peculiar is...
# kotlin-inject
r
hello 👋🏻 , I've got a peculiar issue using kotlin-inject in my common code for a multiplatform project. it seems none of my scoped provides methods are counted as valid? see thread for code and error message.
The error I get on every function is this
@Provides method is not accessible
I've looked all over at the repo issues, readme, this slack, etc, but couldn't find anything covering troubleshooting this issue
l
What happens if you remove the
protected
from all of them?
e
protected should work though I wonder if there's an issue with it on multiplatform. Any chance you can create a sample project that reproduces it?
r
haven't tried that, but thanks for chiming in. i'll see if removing protected helps
removing
protected
got rid of the error but now my
::class.create()
function doesn't seem to be generated during my build i was really hoping kotlin-inject could work on my KMM project, but i'm going to move to Koin for now thank you for the help here!
l
How’s your multiplatform plugin & targets configured? can you inspect if the generated classes indeed dont exist inside the build/generated/ksp folder?