Anybody know why it's possible to run say a `main`...
# multiplatform
j
Anybody know why it's possible to run say a
main
function that's in code in
jvmMain
in kotlin multiplatform module in stable Android Studio but not in IntelliJ or AS Canary for that matter?
🤷 1
I get the run icon in all cases but only works as mentioned in AS stable
In AS canary then I get
Copy code
Cannot locate tasks that match ':shared:compileJava' as task 'compileJava' is ambiguous in project ':shared'. Candidates are: 'compileDebugAndroidTestJavaWithJavac', 'compileDebugJavaWithJavac', 'compileDebugUnitTestJavaWithJavac', 'compileReleaseJavaWithJavac', 'compileReleaseUnitTestJavaWithJavac'.
so, looks like works if I change "Before Launch" in Run Configuration from default "Build" to
compileKotlinJvm
gradle task
Still not sure why it works in AS stable
k
The reason is AS is for the Android development. IDEA for general Java
261 Views