解决android studio被防火墙拦截问题

本文介绍了解决Android Studio中出现的连接超时错误及无法建立adb连接的问题。提供了配置防火墙设置的方法来允许Android Studio和adb通过,并详细说明了如何添加相关程序到防火墙例外。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题报错
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
解决方法
打开控制面板选择网络和Internet的查看网络状态。——>然后点击左侧的防火墙->点击左上角允许程序通过防火墙->点击右下角允许运行另一程序——>然后选择android studio。点击确定。
问题报错

Unable to establish a connection to adb.

Check the Event Log for possible issues.
This can happen if you have an incompatible version of adb running already.
Try re-opening Studio after killing any existing adb daemons.

If this happens repeatedly, please file a bug at http://b.android.com including the following:
  1. Output of the command: 'I:\sdk\platform-tools\adb.exe devices'
  2. Your idea.log file (Help | Show Log in Explorer)

是防火墙把adb禁了,按照以上顺序到达选择程序那步,然后点击浏览,把adb.exe加进去。adb.exe在sdk的platform-tools里。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值