https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Matouš Skála

02/16/2019, 9:50 PM
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

russhwolf

02/17/2019, 1:16 AM
Issue is your Android sourceset is using presets.jvm instead of android
👏 1
m

Matouš Skála

02/17/2019, 8:41 AM
Thanks! With
presets.android
it works.
👏 1
5 Views