Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected tokens (use ';' to separate expressions on the same line) in build.gradle.kts when i add rxjava and rxkotlin

i can not add rxjava and rxkotlin to build.gradle.kts in intellij-idea and it shows error like this

enter image description here

what i have to do? i don't understand

like image 454
Dyni15 Avatar asked Oct 23 '25 16:10

Dyni15


1 Answers

You have a .kts ( Kotlin script ) file, implementation is a kotlin function here, and the dependency should be passed as an argument to it.

implementation ("io.reactivex.rxjava3:rxjava:3.1.5")
implementation ("io.reactivex.rxjava3:rxkotlin:3.0.1")
like image 93
z.g.y Avatar answered Oct 26 '25 08:10

z.g.y



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!