Comments
I have installed a fresh copy of the IDE but continue to get this error when opening the Boards Manager.
I have followed instructions on the forum to rectify the problem but nothing works.
I am running Windows 10.
I can access this URL from my browser.
I am able to install some of the boards that are listed in the Boards Manager, but most give errors when trying to install.

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$0(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$0(ContributionManagerUI.java:147)
... 1 more
Caused by: java.net.SocketException: Address family not supported by protocol family: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:83)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 5 more
Hi, If you open the preferences menu, you can navigate to the .Arduino15 folder clicking on the preferences path. Then open the folder staging/packages and try to delete all the archive you have there. Please let me know if the problem persist.
Hi.
Thanks for the reply.
Deleted the folder, same problem.
GENIUS!
This worked.
I am surprised that many more people do not have this problem. I do not have anything special in my environment.
This is what I had to do – nothing else:-
- Open command prompt (windows start button, type cmd in search)
- Click top left of command prompt, click properties, enable quick edit mode
- Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
- Right click on command prompt, should paste
- Hit enter. That easy!
mrohner, sicsim, FredericoLeite105, DENISGOMASKO, and akdimitri reacted with thumbs down emoji
DarkStar18, remotegard, and FusionSource reacted with heart emoji
@clivepengelly
from the linked article it seems that the problem is caused by a spyware:
Try to check whether the spy program called «RelevantKnowledge» is installed. Its
uninstallation helped me to solve the problem.
You may probably want to check if you have this program installed too.
BTW happy that you solved it!
I do have this relevant knowledge thing running. What is it and where does it come from?
I download a lot of development and test software.
Please help the problem still exist for me
I have done:
setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
on command prompt. I am getting «Success: specified value was saved«.
I also checked for the relevant knowledge spy.
I also tried Arduino 1.6.8.
I also deleted archives in arduino15 file.
I’m still getting the error:
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.net.SocketTimeoutException: Connect timed out
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 5 more
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.net.SocketTimeoutException: Connect timed out
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 5 more
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.net.SocketTimeoutException: Connect timed out
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 5 more
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.net.SocketTimeoutException: Connect timed out
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 5 more
Hey Problem solved,I just tried remove as much software which was seeing to be unknown to me
and then deleted the arduino and reinstalled and then restarted my pc . now it is working fine.
Its worked ………..
you r a GENIUS>…………
it’s a problem of Internet connectivity in PC or laptop.
i have this problem too,
I have followed instructions on the forum to rectify the problem but nothing works.
I am running Windows 10.
I can access this URL from my browser.
I’ve opened the folder staging/packages and deleted all the archive that i had.
I’ve tried this one: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
but its still had an error. i don’t know what to do!
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.
I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
DENISGOMASKO, amrithmmh, rozenc, and alisalmabadi reacted with laugh emoji
friesandacoke, PierreLecomte, HamzaHajeir, Hammarstrom, kheshava043, amrithmmh, BlaT2512, rozenc, antoanyanev, Combinacijus, and 2 more reacted with hooray emoji
AnnaLobo, aakshjn, amrithmmh, rozenc, antoanyanev, alisalmabadi, and ChibaniMohamed reacted with heart emoji
ChibaniMohamed reacted with rocket emoji
This setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
results in an error:
ERROR: Invalid syntax. Default option is not allowed more than ‘2’ time(s).
Type «SETX /?» for usage.
@ShotgunBurger perfect for me. I just deleted that file and «voilà».
It back to work.
I could solved this issue by correcting java configuration and change the proxy seeting of java network to correct solution. try these step in windows
1- search configure java from start menu
2- In general tab open network setting and correct it (i changed it to direct connection — no proxy )
arduino work and download rapidly any things
@ShotgunBurger That was what I needed. Perfect. Thanks!
To add, most will need to unhide hidden files and folders before they can see the appdata folders.
Hi,
I am also facing the same error while managing the Arduino libraries. I have tried all above solution but this didn’t worked for me.
For me, getting this error due to internet connectivity. I have switch to another internet network and tried again and this Works..!.
Hopefully this issue will resolve for you also.
I think it might be down today. Tried to access the URL from my phone and home connection. No dice.
I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
This one worked for me also…. Thanks Much…
Error downloading https://github.com/esp8266/Arduino/releases/download/2.3.0/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.com/esp8266/Arduino/releases/download/2.3.0/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:176)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading https://github.com/esp8266/Arduino/releases/download/2.3.0/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:69)
at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:110)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:173)
... 1 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:593)
at sun.security.ssl.InputRecord.read(InputRecord.java:532)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.MeteredStream.read(MeteredStream.java:134)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3375)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3368)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:209)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
... 4 more
Just copy company’s proxy setting to ArduinoIDE>preference>NetworkTab. It works. You can use library manager and board manager.
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
Thank you very much!!!
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
This worked for me. Cheers
@clivepengelly Wow, open the Command and paste «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true» WORK perfectly. Thank you so much for solving my problem. <3
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
thanks !! so lady
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
thaaaaanks the only thing that worked o/
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
this worked for me
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
None of these fixed the problem.I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
This is indeed the correct solution.
Thanks alot mate
open arduino ide
File > Preferences
copy paste to the input box of (Additional boards manager urls):
https://arduino.esp8266.com/stable/package_esp8266com_index.json
click on arduino folder url link at the bottom. and leave it aside.
click ok in preferences screen.
open cmd and copy paste this:
«setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
open ide again, and wait a minute.
looking on the content folder from before, when something has changed,
wait some seconds to finish,
and then,
delete all from the folder except from the preferences.txt
open:
Tools > Board > Board Manager
see if the loader in the bottom finish working
They recommend deleting the file package_index.json that is stored in package_index.json or package_index.json.tmp
I had this issue — I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true»
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot
I tried by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and delete all of them and nothing happend
None of these fixed the problem.
but when i try to uninstall java and reinstall it and plus to configure java path on Advance System Settings, it’s good (in condition i reinstall arduino, i delete file in arduino>file>preferences folder)
Goodluck guyss
It worked for me!! Try this definately
I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
I have the same problem.
But if i try to delete «package_index.json.tmp», a new file comes up again and again.
Whats my mistake?
Re Install your Java from computer :
1. Uninstall java from (add remove program (search))
2. Install Java from https://www.java.com/en/download/
…
On Wed, Oct 9, 2019 at 6:13 PM Ksol13 ***@***.***> wrote:
I have the same problem.
But if i try to delete «package_index.json.tmp», a new file comes up again
and again.
Whats my mistake?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5188?email_source=notifications&email_token=ANDDKZKHDJTW5BMYAHEAL5TQNW4F3A5CNFSM4CLEBVB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAXRACY#issuecomment-539955211>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANDDKZMX7HBWYN5E4RB3NZTQNW4F3ANCNFSM4CLEBVBQ>
.
I have the same problem.
But if i try to delete «package_index.json.tmp», a new file comes up again and again.
Whats my mistake?
Same here, tried all method stated above, the file just keep comes up again when try to open board manager. Are you able to solve it yet?
@yihanglim I’ve perhaps a related problem.
When I try to use Board_Manager, I run into an java.lang.RuntimeException:
java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
at java.lang.Thread.run(Thread.java:748)
Note: this BM action updates file(s) from «http://downloads.arduino.cc/packages/package_index.json»
After this, BM exception, Arduino cannot be restarted as long the «package_index.json» exists.
Removing this re-iterates the problem as soon as I (need to) update board manager.
Note: I run Linux, the problem initiated on my old Arduino 1.8.5 (which was fine) and now persists with the latest 1.8.12. The same happens on a cleanly installed machine. Hence, something seems to be wrong with «package_index.json».
You could try deleting all files that seem related to package_index.json, not just package_index.json.tmp.
@KTibow : same result. Clearing the .Arduino15 directory will refill it with newly downloaded files as soon when I try to use BoardManager.
Further testing, show that (my problem) is related to the signature file «package_index.json.sig», as soon as I remove that file and/or change the original contents of «package_index.json» (which causes an unmatched signature), I can restart Arduino with the per BoardManager newly updated json file.
Problem remains of course that whenever I try to use BoardManager, this file is renewed and again re-iterate the start of the problem (java null-exception at/with BoardManager).
I also compared «package_index.json» with te preserved old one (dated january 2020) and found that new file now of contains the following extra packages: arduino-beta, Arduino megaAVR Boards 1.8.6 (in addition tot 1.8.5), Arduino nRF528x Boards (Mbed OS), avr-gcc 7.3.0-atmel3.6.1-arduino7 (in addition to 7.3.0-atmel3.6.1-arduino5.
I see #10333 reporting this (exception) and continue to contribute there.
@ptrooms after spending whole night of troubleshooting, I couldn’t find a solution. This version used to work fine for a few days before and suddenly this issue occurred out of nothing. So I uninstalled 1.8.12 and installed the hourly builds (last upated 3 June 2020 22:13:17 GMT) . So far everything runs alright.
@yihanglim , yes metoo. Currently I’m using the nightly version also. See the other threads for more details. Time for a good nap of sleep.
We had a problem on our package_index.json that caused the error and prevented the IDE to start.
Now the package_index has been fixed, but to recover a working installation you must delete once again the package_index.json with the cache folder and restart the IDE as usual.
Windows:
- remove file C:UsersYourUsernameAppDataLocalArduino15package_index.json
- remove folder C:UsersYourUsernameAppDataLocalArduino15cache
Mac:
- remove file /Users/YourUsername/Library/Arduino15/package_index.json
- remove folder /Users/YourUsername/Library/Arduino15/cache
Linux:
- remove file /home/YourUsername/.arduino15/package_index.json
- remove folder /home/YourUsername/.arduino15/cache
Please note that the problem that prevents the IDE to start has already been fixed and it’s ready for the next release, that’s the reason why the Nightly/Beta Builds are not affected, and also the reason why we did not detect this problem earlier, sorry about that!
I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
This one worked for me also…. Thanks Much…
so reliefed
If everything here doesn’t work for you, download the package manually and place it in C:Users< USER >AppDataLocalArduino15stagingpackages. Then go back to the IDE and install again.
I had this issue — I am running Windows 10, Arduino IDE 1.8.3 I tried the CMD Prompt «setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true» I tried a fresh install of the Arduino IDE I tried resetting my PPPoE Connection via my modem to my ISP I tried using WiFi, Ethernet and tethering to my cell phone’s ISP via personal hotspot None of these fixed the problem.
I fixed my issue by going to «ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15» and deleting the file «package_index.json.tmp»
Now it works fine.
hi , it worked for me too
thanksssss
arduino
locked as resolved and limited conversation to collaborators
Jan 26, 2023
СОДЕРЖАНИЕ ►
- Произошла ошибка при загрузке скетча в Ардуино
- programmer is not responding
- a function-definition is not allowed arduino ошибка
- expected initializer before ‘}’ token arduino ошибка
- ‘что-то’ was not declared in this scope arduino ошибка
- No such file or directory arduino ошибка
- Compilation error: Missing FQBN (Fully Qualified Board Name)
Ошибки компиляции Arduino IDE возникают при проверке или загрузке скетча в плату, если код программы содержит ошибки, компилятор не может найти библиотеки или переменные. На самом деле, сообщение об ошибке при загрузке скетча связано с невнимательностью самого программиста. Рассмотрим в этой статье все возможные ошибки компиляции для платы Ардуино UNO R3, NANO, MEGA и пути их решения.
Произошла ошибка при загрузке скетча Ардуино
Самые простые ошибки возникают у новичков, кто только начинает разбираться с языком программирования Ардуино и делает первые попытки загрузить скетч. Если вы не нашли решение своей проблемы в статье, то напишите свой вопрос в комментариях к этой записи и мы поможем решить вашу проблему с загрузкой (бесплатно!).
avrdude: stk500_recv(): programmer is not responding
Что делать в этом случае? Первым делом обратите внимание какую плату вы используете и к какому порту она подключена (смотри на скриншоте в правом нижнем углу). Необходимо сообщить Arduino IDE, какая плата используется и к какому порту она подключена. Если вы загружаете скетч в Ардуино Nano V3, но при этом в настройках указана плата Uno или Mega 2560, то вы увидите ошибку, как на скриншоте ниже.

Такая же ошибка будет возникать, если вы не укажите порт к которому подключена плата (это может быть любой COM-порт, кроме COM1). В обоих случаях вы получите сообщение — плата не отвечает (programmer is not responding). Для исправления ошибки надо на панели инструментов Arduino IDE в меню «Сервис» выбрать нужную плату и там же, через «Сервис» → «Последовательный порт» выбрать порт «COM7».
a function-definition is not allowed here before ‘{‘ token
Это значит, что в скетче вы забыли где-то закрыть фигурную скобку. Синтаксические ошибки IDE тоже распространены и связаны они просто с невнимательностью. Такие проблемы легко решаются, так как Arduino IDE даст вам подсказку, стараясь отметить номер строки, где обнаружена ошибка. На скриншоте видно, что строка с ошибкой подсвечена, а в нижнем левом углу приложения указан номер строки.

expected initializer before ‘}’ token / expected ‘;’ before ‘}’ token
Сообщение expected initializer before ‘}’ token говорит о том, что вы, наоборот где-то забыли открыть фигурную скобку. Arduino IDE даст вам подсказку, но если скетч довольно большой, то вам придется набраться терпения, чтобы найти неточность в коде. Ошибка при компиляции программы: expected ‘;’ before ‘}’ token говорит о том, что вы забыли поставить точку с запятой в конце командной строки.
‘что-то’ was not declared in this scope
Что за ошибка? Arduino IDE обнаружила в скетче слова, не являющиеся служебными или не были объявлены, как переменные. Например, вы забыли продекларировать переменную или задали переменную ‘DATA’, а затем по невнимательности используете ‘DAT’, которая не была продекларирована. Ошибка was not declared in this scope возникает при появлении в скетче случайных или лишних символов.

Например, на скриншоте выделено, что программист забыл продекларировать переменную ‘x’, а также неправильно написал функцию ‘analogRead’. Такая ошибка может возникнуть, если вы забудете поставить комментарий, написали функцию с ошибкой и т.д. Все ошибки также будут подсвечены, а при нескольких ошибках в скетче, сначала будет предложено исправить первую ошибку, расположенную выше.
exit status 1 ошибка компиляции для платы Arduino
Данная ошибка возникает, если вы подключаете в скетче библиотеку, которую не установили в папку libraries. Например, не установлена библиотека ИК приемника Ардуино: fatal error: IRremote.h: No such file or directory. Как исправить ошибку? Скачайте нужную библиотеку и распакуйте архив в папку C:Program FilesArduinolibraries. Если библиотека установлена, то попробуйте скачать и заменить библиотеку на новую.

Довольно часто у новичков выходит exit status 1 ошибка компиляции для платы arduino uno /genuino uno. Причин данного сообщения при загрузке скетча в плату Arduino Mega или Uno может быть огромное множество. Но все их легко исправить, достаточно внимательно перепроверить код программы. Если в этом обзоре вы не нашли решение своей проблемы, то напишите свой вопрос в комментариях к этой статье.
missing fqbn (fully qualified board name)
Ошибка возникает, если не была выбрана плата. Обратите внимание, что тип платы необходимо выбрать, даже если вы не загружаете, а, например, делаете компиляцию скетча. В Arduino IDE 2 вы можете использовать меню выбора:
— список плат, которые подключены и были идентифицированы Arduino IDE.
— или выбрать плату и порт вручную, без подключения микроконтроллера.
Форум Вопросы и темы по программированию Arduino, ESP8266, STM32, Digispark и пр.
| 4 сентября, 2019 — 19:58 | |
|---|---|
|
мененжер плат .. нет esp8266 Будущее за микроконтроллерами |
uels![]() Зарегистрирован: 4.09.2019 |
| 4 сентября, 2019 — 19:58 | #1 |
|---|---|
|
в ютубе предложили на ваш форум |
uels![]() Зарегистрирован: 4.09.2019 |
| 4 сентября, 2019 — 20:02 | #2 |
|---|---|
|
прошу посмотреть на прямую через программу — TEAM VIEWER |
uels![]() Зарегистрирован: 4.09.2019 |
| 5 сентября, 2019 — 08:18 | #3 |
|---|---|
Сделали все правильно? Будущее за микроконтроллерами |
Admin![]() Зарегистрирован: 3.07.2018 |
| 5 сентября, 2019 — 08:18 | #4 |
|---|---|
Приложите скриншот проще и у меня нет времени чтобы ставить и подключаться к вам по TEAM VIEWER. Да и смысл в этом. Будущее за микроконтроллерами |
Admin![]() Зарегистрирован: 3.07.2018 |
| 5 сентября, 2019 — 08:21 | #5 |
|---|---|
|
У вас ошибка даже в названии темы. Будущее за микроконтроллерами |
Admin![]() Зарегистрирован: 3.07.2018 |
| 5 сентября, 2019 — 08:39 | #6 |
|---|---|
|
спасибо — нашел буква не та была — z— написал вместо s — json |
uels![]() Зарегистрирован: 4.09.2019 |
| 5 сентября, 2019 — 08:44 | #7 |
|---|---|
Я знаю правду! Но вам не скажу! =))) |
Степка-3003![]() Зарегистрирован: 5.09.2019 |
| 5 сентября, 2019 — 09:12 | #9 |
|---|---|
|
КОПИРОВАТЬ СООБЩЕНИЯ ОБ ОШИБКИ .— В ПРОГРАММЕ .ТАКОЙ ОГРОМНЫЙ ТЕКСТ ПОЛУЧАЕТСЯ |
uels![]() Зарегистрирован: 4.09.2019 |
| 5 сентября, 2019 — 09:14 | #10 |
|---|---|
|
ЛИШНЕЕ УДАЛИЛ Плата generic (платформа esp8266, пакет esp8266) неизвестнаОшибка компиляции для платы Generic ESP8266 Module. |
uels![]() Зарегистрирован: 4.09.2019 |
| 5 сентября, 2019 — 09:16 | #11 |
|---|---|
У вас какая плата? Будущее за микроконтроллерами |
Admin![]() Зарегистрирован: 3.07.2018 |


