Is there an example how to access android sdk from...
# multiplatform
m
Is there an example how to access android sdk from androidMain sources in MPP? I have applied
com.android.library
plugin, but during compilation I still get
Unresolved reference: android
when trying to access classes from android sdk. Do I miss something here? https://github.com/MattSkala/kotlin-examples/commit/22477f5b24badb23d158f1dd3760ee2780d01a9a
r
Issue is your Android sourceset is using presets.jvm instead of android
👏 1
m
Thanks! With
presets.android
it works.
👏 1