Android Studio Hedgehog Canary版本Studio Bot出现意外网络错误
问题描述
在Android Studio Hedgehog 2023.1.1 Canary 4中登录谷歌账号后,首次启动Studio Bot,无论提交任何查询内容,均触发以下网络错误:
Unexpected network error, please try again later.
Error: Status UNAVAILABLE io exception Channel Pipeline: [HttpProxyHandler$HttpClientCodecWrapper#0, HttpProxyHandler#0, ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]

解决步骤
- 重置代理配置
进入File > Settings > Appearance & Behavior > System Settings > HTTP Proxy,将代理模式切换为No proxy,点击Apply后重启Android Studio,再测试Studio Bot功能。 - 清除IDE缓存
关闭Android Studio,找到对应缓存目录:- Windows:
C:\Users\[你的用户名]\.AndroidStudioHedgehog\system\caches - Mac:
~/Library/Caches/Google/AndroidStudioHedgehog
删除caches文件夹内的所有文件,重新启动IDE。
- Windows:
- 升级至最新预览版
通过Help > Check for Updates检查并升级到最新的Hedgehog Canary版本,预览版的已知bug通常会在后续更新中修复。 - 重新绑定谷歌账号
进入File > Settings > Appearance & Behavior > System Settings > Accounts,移除已登录的谷歌账号,重启IDE后重新完成账号登录流程,再尝试使用Studio Bot。 - 切换网络环境
尝试更换网络(如手机热点),排除本地网络防火墙、运营商限制导致的谷歌服务访问问题。
内容的提问来源于stack exchange,提问作者Hossein Badrnezhad
相关产品推荐
相关产品推荐

