Error while creating object for KiteConnect class.

Devi
Sample code
KiteConnect kitesdk = new KiteConnect("key");

Error thrown is

Exception in thread "main" java.lang.NoSuchFieldError: Companion
at okhttp3.internal.Util.(Util.kt:70)
at okhttp3.internal.concurrent.TaskRunner.(TaskRunner.kt:309)
at okhttp3.ConnectionPool.(ConnectionPool.kt:41)
at okhttp3.ConnectionPool.(ConnectionPool.kt:47)
at okhttp3.OkHttpClient$Builder.(OkHttpClient.kt:447)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.(KiteRequestHandler.java:27)
at com.zerodhatech.kiteconnect.KiteConnect.(KiteConnect.java:81)
at com.zerodhatech.kiteconnect.KiteConnect.(KiteConnect.java:48)
Sign In or Register to comment.