How to exclude Kotlin from OkHttp?

73 views Asked by At

I'm using OkHttp version 4.12.0. I have the .jar included in the Libraries folder in Netbeans.

I attempt to make a simple post request, but get the error:

Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/markers/KMappedMarker

I'm not using Kotlin. And do no wish to install, or use it.

Is it possible to exclude the Kotlin classes? I use okio-jvm which doesn't include the Kotlin classes, but okhttp doesn't appear to have a Java only package.

I'm using Ant.

Thanks

0

There are 0 answers