Error downloading https://downloads.arduino.cc/packages/package_index.json

How can connect to my esp8266 nodemcu to arduino ide showing following error can anybody help me resolving this error.

Error downloading https://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading https://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading https://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:139)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:333)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:307)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:285)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:146)
    ... 1 more
Caused by: java.nio.file.FileSystemException: C:\Users\Krish\AppData\Local\Arduino15\package_index.json.tmp: The process cannot access the file because it is being used by another process.

    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
    at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
    at java.nio.file.Files.delete(Files.java:1126)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:156)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:132)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:137)
    ... 5 more
 Error downloading https://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading https://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading https://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:139)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:333)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:307)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:285)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:146)
    ... 1 more
Caused by: java.nio.file.FileSystemException: C:\Users\Krish\AppData\Local\Arduino15\package_index.json.tmp: The process cannot access the file because it is being used by another process.

    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
    at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
    at java.nio.file.Files.delete(Files.java:1126)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:156)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:132)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:137)
    ... 5 more
 Error downloading https://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading https://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading https://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:139)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:333)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:307)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:285)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:146)
    ... 1 more
Caused by: java.nio.file.FileSystemException: C:\Users\Krish\AppData\Local\Arduino15\package_index.json.tmp: The process cannot access the file because it is being used by another process.

    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
    at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
    at java.nio.file.Files.delete(Files.java:1126)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:156)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:132)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:137)
    ... 5 more

I'd say any java error, close the IDE and open it again.

1 Like

Might you be trying to download libraries at work? Firewall issue?

I have the same issue at work, but I have no problems from home on same computer.

Download is blocked.

If you can access that URL from the browser, that sounds like a software firewall blocking the IDE from accessing the internet, consult the documentation for whichever firewall software you are running and configure it to allow the IDE. If you can't, that suggests a network level firewall or connectivity issue.

krish2395: Caused by: java.nio.file.FileSystemException: C:\Users\Krish\AppData\Local\Arduino15\package_index.json.tmp: The process cannot access the file because it is being used by another process.

This error makes me suspect this could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single attempt at Boards Manager to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere.

I have this exact same problem but with macOS Catalina 10.15.4

Did this ever get solved?

Thanks everybody!

ulfeldt:
I have this exact same problem but with macOS Catalina 10.15.4

In that case please start your own thread, copy the (complete !) error message and post it within </> code tags. It may look the same, but that doesn’t mean it is.