2017-09-26 20 views
2

私はsame issueを見つけ、指定された溶液で試してみましたが、私のGradleのは

のようなものです

java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/OkHttpClient$Builder; 

Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.OkHttpClient$Builder" on path: DexPathList[[zip file "path" ]] 

以下のようにまだ私は同じエラーを取得していますよ

compile 'io.realm:android-adapters:1.4.0' 
compile 'io.reactivex.rxjava2:rxandroid:2.0.1' 
compile 'io.reactivex:rxandroid:1.1.0' 
compile 'io.reactivex:rxjava:1.1.3'  


compile 'com.squareup.retrofit2:retrofit:2.3.0' 
compile 'com.squareup.retrofit2:converter-gson:2.3.0' 
compile 'com.squareup.retrofit2:adapter-rxjava:2.3.0' 
compile 'com.squareup.okhttp3:okhttp:3.9.0' 

私はMultidexApplicationを拡張するアプリケーションクラスを持っています。

+0

であなたのGradleファイルを更新あなたはアンドロイドスタジオを再起動/再構築/きれいにしようとしましたか? – Vucko

+0

私はきれいにしようとし、再起動すると、アンドロイドスタジオを再起動しようとしたが、それは助けになるだろう.. –

+0

私は知らない。試してみてください。 – Vucko

答えて

0

この

android { 
    defaultConfig { 
    multiDexEnabled true 
    } 
} 
関連する問題