I have imported Retrofit in my project adding following to app.gradle:
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
Yet now when execute calls the app crashes with following error:
FATAL EXCEPTION: OkHttp Dispatcher
Process: com.my.app, PID: 31176
java.lang.AbstractMethodError: abstract method "void okhttp3.Callback.onResponse(okhttp3.Call, okhttp3.Response)"
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
I need to import specific version of Retrofit (2.0.0-beta3) because of LoganSquare JSON parser otherwise I would consider using previous versions of Retrofit. How to resolve this problem?