[英]Okhttp and retrofit are not working together
I am using following libs 我正在使用以下库
compile 'com.android.support:design:23.1.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.4.0'
The problem is retrofit is not getting along with okhttp. 问题是改型与okhttp不兼容。 Even they are from squareup what is going on? 甚至他们都是从起头来的,这是怎么回事?
My application crashes as soon as it starts. 我的应用程序一启动就会崩溃。 How can i make both work? 我怎样才能同时工作?
Process: com.neberox.app.cloudbuckit, PID: 4748
03-13 03:08:37.471 4748-4748/com.neberox.app.cloudbuckit E/AndroidRuntime: java.lang.NoClassDefFoundError: retrofit.Endpoints
03-13 03:08:37.471 4748-4748/com.neberox.app.cloudbuckit E/AndroidRuntime: at retrofit.RestAdapter$Builder.setEndpoint(RestAdapter.java:565)
03-13 03:08:37.471 4748-4748/com.neberox.app.cloudbuckit E/AndroidRuntime: at com.neberox.app.cloudbuckit.api.ApiManager.<init>(ApiManager.java:171)
03-13 03:08:37.471 4748-4748/com.neberox.app.cloudbuckit E/AndroidRuntime: at com.neberox.app.cloudbuckit.MyApplication.onCreate(MyApplication.java:27)
03-13 03:08:37.471 4748-4748/com.neberox.app.cloudbuckit E/AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.