https://kotlinlang.org logo
a

Ashley Figueira

01/21/2019, 6:05 PM
I cant seem to get the dependencies for iOSMain working. Can anyone help? Using gradle 4.10.1 and kotlin 1.3.20-eap-100 as in the kotlin example layed out by jetbrains.
r

russhwolf

01/21/2019, 6:13 PM
Use gradle 4.7 if you're using coroutines. Later versions will not work due to gradle metadata incompatibilities
a

Ashley Figueira

01/21/2019, 6:18 PM
Can i use gradle 4.7 in android studio 3.3?
r

russhwolf

01/21/2019, 6:20 PM
I haven't actually tried, but it won't work with the default 3.3 gradle plugin. You might be able to get it working with gradle plugin 3.2.1 but the IDE might complain.
Otherwise, you can stick to AS 3.2 or use Intellij IDEA with the 3.2 android gradle plugn
You can track this issue for the fix: https://youtrack.jetbrains.com/issue/KT-29045
a

Ashley Figueira

01/21/2019, 6:40 PM
Thank you. I allready have android studio 3.3 and so i dont want to downgrade it. I’ll try what you recommended.
p

pandawarrior

01/22/2019, 1:34 AM
Don’t have to downgrade it. Just install them alongside each other.
a

Ashley Figueira

01/22/2019, 4:55 PM
Used android studio 3.3. Using gradle 4.7 android gradle plugin 3.2.1 ktor version 1.0.1 coroutines version 1.0.1 kotlin 1.3.11 Everything is working fine now thanks.