https://kotlinlang.org logo
Title
g

gmaciel

04/05/2018, 1:16 PM
Anything i’m missing here?
v

vincent.desmet

04/05/2018, 1:46 PM
Konan compiles to native code. You’ll need to use the Android NDK if you want to use that. But you probably want to compile to JVM instead?
g

gmaciel

04/05/2018, 1:51 PM
yeah, actually my goal is to compile to JVM, so that could be my problem. What i need to run to export that into jvm / android code?
g

gildor

04/05/2018, 1:59 PM
Just configure Kotlin in Android project https://kotlinlang.org/docs/tutorials/kotlin-android.html
o

olonho

04/05/2018, 1:59 PM
if you need to share code between Android and iOS what you need is multiplatform projects, see this example https://github.com/JetBrains/kotlin-native-calculator-sample
g

gildor

04/05/2018, 2:00 PM
If you want to use it for multiple platforms use multiplatform approach https://kotlinlang.org/docs/reference/multiplatform.html
g

gmaciel

04/05/2018, 2:32 PM
Using the calculator one as base apparently worked, will go through the configs and see what i’ve missed. Thanks for the help.
only thing is that project on ios throws an error
Showing Recent Issues
Parallel execution with configuration on demand is an incubating feature.

:ios:checkKonanCompiler
:ios:compileKonanKotlinArithmeticParserIos_x64error: you have not specified any compilation arguments. No output has been produced.