I’m trying to use androidx.annotation.Keep
on a KMP project, but Android Studio (Ladybug | 2024.2.1 Patch 3) is showing “Unresolved reference: Keep”.
It says that androidx.annotation
is not implemented, but I have it in my dependencies:
dependencies {
implementation(libs.androidx.annotation.v191)
I tried to put in the dependencies on the root, and on the commonMain.dependencies
on sourceSets
. I don’t know very well the difference between then.
And the app compiles… I tried to put keep in some class only to test and it compiled. I’m really new on Kotlin/Android, so I don’t know if it is an error of the IDE or I’m doing someghin wrong.
Best regards Diego.