2
我發現了same issue,並與指定的解決方案嘗試,但仍然我得到了同樣的錯誤,如下
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" ]]
我gradle這個公司就像是
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的應用程序類。
gradle這個文件你嘗試清理/重建/重啓機器人工作室? – Vucko
我試過乾淨和重建力度嘗試重新啓動android工作室,它會幫助.. –
我不知道。嘗試一下,讓我知道。 – Vucko