racofix / architecture-for-android

🙈 Coroutines + flow + mvvm-clean / mvp
881 stars 239 forks source link

程序无法运行 #3

Closed yinyb closed 7 years ago

yinyb commented 8 years ago

06-20 17:41:59.860 22651-22880/com.zhoujinlong E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher Process: com.zhoujinlong, PID: 22651 java.lang.NoSuchMethodError: No virtual method log(Ljava/lang/String;)V in class Lokhttp3/internal/Platform; or its super classes (declaration of 'okhttp3.internal.Platform' appears in /data/app/com.zhoujinlong-1/base.apk) at okhttp3.logging.HttpLoggingInterceptor$Logger$1.log(HttpLoggingInterceptor.java:109) at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:157) at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163) at okhttp3.RealCall.access$100(RealCall.java:30) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) 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)

racofix commented 8 years ago

将core中的build.gradle中的改成 compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4' compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta4' compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'

zhengxiaochuan commented 8 years ago

修改过之后还是不行啊

racofix commented 8 years ago

@zhengxiaochuan compile 'com.squareup.okhttp3:logging-interceptor:3.1.2'改成这个 我昨天升级的时候出现的问题

zhengxiaochuan commented 8 years ago

compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4' compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta4' compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4' compile 'com.squareup.okhttp3:logging-interceptor:3.1.2' 我都已经改成这样了,还是不行啊,一登录App就停止啊