Is there anyone who used Koin annotation in a real...
# koin
h
Is there anyone who used Koin annotation in a real KMM project? I’m trying to use it but it does not resolve
org.koin.ksp.generated.module
even in the Koin sample project https://github.com/InsertKoinIO/hello-kmp
p
let me give it a try
what command did you try ?
h
Thank you I just wanted to use the module extension on my module classes which are annotated by @Module anotation
p
for me it compiled
and was ok
h
Can it be related to the Android studio version? Mine is Electric Eel | 2022.1.1
p
maybe
Android Studio Flamingo | 2022.2.1 Beta 1
try flamingo
and update the KMM plugin
h
Ok I'll try it Thank you
m
For me even for non kmm project, module generation is very random. sometimes they are generated, then you build again and they are gone. Not sure how to make them work
Although I did a big refactor from dagger to koin, so there might be some failures somewhere, but I do not get any logs
h
For me even after updating the Android Studio to Flamingo | 2022.2.1 Beta 1, not only in my own project but also in the Koin sample project it doesn’t resolve
org.koin.ksp.generated.module
I’m afraid if it works randomly as @Mantas Varnagiris mentioned and causes problems while developing our project so I decided not to use Koin Annotations for now
p
what jdk are you using @Hossein Amini?
h
java version “19.0.2” 2023-01-17 I asked one of my colleagues to check it on her machine but she had the same issue as me
p
am using 11
can you try that just for curious
a
h
@Pedro Alberto ok I'll try it
@arnaud.giuliani I was looking at that branch
a
oh ye 👍
KSP setup issue then?
h
@arnaud.giuliani Yeah it doesn’t resolve
org.koin.ksp.generated.module
and the module extension I can run the project but by rebuilding the project it argues about
org.koin.ksp.generated.module
a
with KSP you need to build yes
h
@arnaud.giuliani You mean it is normal?
org.koin.ksp.generated.module
is always red even after building the project
253 Views