You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio中Codeium Chat连接失败问题求助

问题描述

在Android Studio中打开Codeium Chat窗口时,窗口弹出但连接失败,错误提示:Connection Error,Missing chat language server URL。已尝试重启电脑、Android Studio、重新安装插件并登录、点击Retry Connection按钮等官方建议操作,问题仍未解决。调试输出如下:

{ 
  "url": "http://127.0.0.1:49814/?api_key=0511b268-a1e8-40ba-abc7-abffe568ee79", 
  "connection": { 
    "status": "CONNECTING", 
    "error": { 
      "name": "Error", 
      "message": "Missing chat language server URL. Please ensure that you are signed in to the Codeium plugin and close / reopen the chat window. If the problem persists, please restart the IDE." 
    } 
  }, 
  "isChatEnabled": false, 
  "handshake": {}, 
  "params": { 
    "ideTelemetryEnabled": false, 
    "ready": true, 
    "apiKey": "0511b268-a1e8-40ba-abc7-abffe568ee79", 
    "hasDevExtension": false, 
    "hasEnterpriseExtension": false, 
    "hasIndexService": false, 
    "diffViewEnabled": false, 
    "openFilePointerEnabled": false, 
    "insertAtCursorEnabled": false 
  }, 
  "data": { "numMessages": 0 }, 
  "bridge": { "bridgeType": "null" }, 
  "health": { 
    "checkStatus": null, 
    "error": { 
      "name": "TypeError", 
      "message": "Failed to fetch" 
    } 
  } 
}
已验证的解决方案
  • 检查IDE代理设置:进入Android Studio的File > Settings > Appearance & Behavior > System Settings > HTTP Proxy,设置为No proxy,或者将本地地址127.0.0.1添加到代理例外名单,避免代理拦截本地Codeium服务连接。
  • 清理插件缓存:删除Codeium插件的缓存目录后重启IDE。
    • Windows路径:C:\Users\<你的用户名>\.AndroidStudio<版本号>\config\plugins\Codeium\cache
    • macOS路径:~/Library/Application Support/Google/AndroidStudio<版本号>/plugins/Codeium/cache
  • 排查端口占用:调试输出中使用的本地端口为49814,检查该端口是否被其他程序占用。
    • Windows:执行命令netstat -ano | findstr :49814,找到占用进程后结束对应程序
    • macOS/Linux:执行命令lsof -i :49814,终止占用端口的进程
  • 切换服务器区域:在Codeium插件设置中找到服务器区域选项,尝试切换到其他可用节点(如亚洲区域),保存设置后重新登录插件并重启IDE。

内容的提问来源于stack exchange,提问作者Muhammad Ali Laqa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 21:32:18