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

rahul_lohra

05/04/2020, 12:10 AM
hello everyone. I have a doubt regarding the dependencies that we add inside
commonMain block
First Question - Why I am
unable
to use normal jars/aars artifacts - when I write them inside
commonMain.dependencies
For eg - If I include
rxJava
dependency inside commonMain. Then I will not be able to use it (reference it) while
writing code in commonMain source folder
shared/build.gradle
Copy code
commonMain.dependencies{
    implementation "io.reactivex.rxjava2:rxjava:2.2.19"
}
Next question - Why / How I am able to use
multiplatform libraries
like below- or how/why am i
properly
use the classes present in
multiplatform library
while writing code in
commonMain folder
Copy code
commonMain.dependencies{
    implementation com.noheltcj:rxcommon:0.6.1
}
j

Javier

05/04/2020, 2:08 AM
You can't use JVM on common
2 Views