https://kotlinlang.org logo
Title
a

Andy Victors

05/08/2019, 9:47 AM
Additionally, I expect
android.xxx.
symbols will be visible in the
androidMain
code but compiler does not find them in my case. How is it supposed to implement
actual
methods if I need android namespace methods?
l

louiscad

05/08/2019, 9:50 AM
Are you using
android()
target in your gradle build config?
a

Andy Victors

05/08/2019, 10:00 AM
Yes, but
fromPreset(presets.jvm, 'android')
. Does it make a difference? I have also learned that I need to
apply plugin: 'com.android.library'
but the project still does not compile
l

louiscad

05/08/2019, 10:11 AM
Yes, a big one, the jvm preset is jvm, not android
@Andy Victors Use
android()
, or
fromPreset(presets.android, 'android')
a

Andy Victors

05/08/2019, 11:48 AM
Thank you, indeed, using jvm preset should have been the root of all my problems. it works now!