Home > Back-end >  How to import a Kotlin Library in IntelliJ
How to import a Kotlin Library in IntelliJ

Time:07-07

So i want to use the Serialization Library in my kotlin project, and from what i can gather from this

But when i try to import the lib, it gives error: enter image description here

CodePudding user response:

Apparently you can indeed use IntelliJ IDEA as a build system without maven or gradle, but I don't think this is a supported way to use kotlinx-serialization.

I'd advise to pick either maven or gradle as your build system for your project (this can be done through IntelliJ, just create a new project and pick either one).

Then you can just follow the relevant paragraph at https://github.com/Kotlin/kotlinx.serialization#setup for either maven or gradle.

  • Related