PersistentCookieStore 使用網上的例子,get百度的網頁https://www.baidu.com/,直接報了空指針,prefsWriter.putString(url.host(), TextUtils.join(",", cookies.get(url.host()).keySet()));中的cookies.get(url.host())為空,求指教
okhttp3使用了cookie持久化,使用get直接請求會報錯
qq_summer空心
2017-03-13 17:12:44