Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By chamathkv
#49938 Hello, I've been trying to obtain the board for the ESP 8266 on my Arduino IDE. However there is a small error. The URL "http://arduino.esp8266.com/stable/package_esp8266com_index.json" is added into the Additional Board Manager URLs and then I go into the Boards Manager Section in tools. The manager tries to show the board in the list, and then just displays "Error downloading http://downloads.arduino.cc/packages/package_index.json". The area in the IDE that shows compilation details shows the following:

Error downloading http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:151)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330)
at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305)
at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:147)
... 1 more
Caused by: java.io.IOException: Received invalid http status code from server: 416
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:194)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 5 more


Would greatly appreciate any help on this issue. Thanks in advance.
User avatar
By pbarreneche
#62785 Me pasa lo mismo, alguien que pueda ayudar? yo lo tenia instalado y al no poder actualizarlo se borro y ahora me da el mismo mensaje

It happens to me, someone who can help? I had it installed and unable to update it deleted and now gives me the same message
User avatar
By edualex
#63078 Olá,

Estava com o mesmo problema e a solução para meu caso foi:

1. Open command prompt (windows start button, type cmd in search)
2. Click top left of command prompt, click properties, enable quick edit mode
3. Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
4. Right click on command prompt, should paste
5. Hit enter. That easy!

Fonte:
https://rntlab.com/question/error-while ... duino-ide/