in kotlin multiplatform module in stable Android Studio but not in IntelliJ or AS Canary for that matter?
🤷 1
John O'Reilly
02/26/2023, 10:29 AM
I get the run icon in all cases but only works as mentioned in AS stable
John O'Reilly
02/26/2023, 10:30 AM
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'.
John O'Reilly
02/26/2023, 11:06 AM
so, looks like works if I change "Before Launch" in Run Configuration from default "Build" to
compileKotlinJvm
gradle task
John O'Reilly
02/26/2023, 11:26 AM
Still not sure why it works in AS stable
k
Konstantin Tskhovrebov
02/27/2023, 9:34 AM
The reason is AS is for the Android development.
IDEA for general Java