Techiio-author
Started by Swarnalata RoydebMay 25, 2022

Open
How to use Kotlin library in a Scala project?

4 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 4 VIEWES SHARE

Please help me to solve this any one!

1 Replies

Techiio-commentatorUtsab Das replied 3 months ago0 likes0 dislikes

This works a bit differently and is not exactly the same as described in the original question.


Here Scala is in a separate module, that means scala can call the kotlin code without problems, since it’s just using a compiled library. Kotlin on the other hand can’t use the scala code, because it’s not yet compiled and you can’t add a dependency on the scala code without getting a circular dependency structure.


The original question is whether you can use scala, kotlin and java in the same module as you can do with only kotlin and java combined. This is not possible as yole explained.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance