Can't create handler inside thread that has not called Looper.prepare()

使用okhttp請求網絡數據遇到這種錯誤,錯誤信息如下 原因是你使用的是隱式開啓新線程「 client.newCall(request).enqueue(callback);」 這句話的報錯其實等同於「你不能在子線程中修改UI線程的界面」 解決辦法很簡單:
相關文章
相關標籤/搜索