Arduino IDE ESP32 C3 “Some indexes could not be updated.”错误

过程

最近用XIAO ESP32 C3的板子做个小项目,使用Arduino IDE进行开发,在按照文档步骤,在File\Perference\Additional Board Manager URLs中添加了

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

但是确定的时候,总是报异常:

Some indexes could not be updated.Get "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json": dial tcp: lookup raw.githubusercontent.com: 
getaddrinfow: The requested name is valid, but no data of the requested type was found.: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

启用Clash后,可以在浏览器中直接打开链接 https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json ,就天真的以为arduino IDE访问也没有问题,但是每次设置总是报上面的错误
以至于不得已换了其他的esp32的json文件,但是会出现无法烧录的情况,烧录时报com3端口上没有设备,No device found on COM3,可以编译但无法烧录。
总是报No device found on COM3
在重装了多次以后,问题依旧,于是把arduino IDE的代理设置打开,改成Clash工具的Proxy端口,再设置https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
后,就可以顺利的完成包的下载和更新了

问题原因总结:

  1. 因为网络的问题,国内大部分需要Proxy才能顺利的完成更新,也就是网络要能访问https://raw.githubusercontent.com;
  2. arduino IDE不会自动使用系统的Proxy,如果想让它走Proxy,必须单独指定,这是问题的根源
  3. 设置其实很简单,如下图,端口指向本机上网工具提供的端口即可
    Proxy设置
    这个问题折腾了我大半天的时间,记录下来留个梯子,给遇到的小伙伴爬坑
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

原子星

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值