Skip to content
Advertisement

Tag: kotlin

Cannot use Apache Commons-IO in Kotlin

I’m writing a CLI application, using the default template from IntelliJ IDEA. I installed commons-io 2.8, by searching for commons-io in the “From Maven” box. However, IntelliJ can’t find it. For example, I was looking for CountingInputStream, which can be imported by: But the import fails at .io. Answer Your project is seem to be a Gradle one. Gradle based

Handle Response Kotlin Retrofit

I’m new to Kotlin and android development. Have been struggling to get my retrofit api to work. But have found a way to do it after some search on SO. I get the data response now, but I don’t know how to “separate” it, so that i can work around with it. this is my json response: and my model

Advertisement