OkHttpClient client = new OkHttpClient();报错
时间: 2023-10-28 16:59:08 浏览: 102
根据你提供的引用内容,问题是OkHttpClient client = new OkHttpClient();报错。解决方案是在build.gradle文件中添加implementation 'com.squareup.okhttp3:okhttp:3.14.9'来引入最新的okhttp版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [OkHttpClient报错找不到该类型的坑](https://blog.csdn.net/weixin_44794178/article/details/116753555)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [android okhttp闪退 创建OkHttpClient处报错闪退 android11](https://blog.csdn.net/Rgemmm/article/details/115616587)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [华为SecoClient报错[SVN Adapter V1.0感叹号]“接受返回码超时”](https://download.csdn.net/download/hu527725a/85086743)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文