Lỗi error downloading downloads.arduino.cc libraries libray_index.json

As it’s said, once you solve problem

1, problem

2 gets a promotion. So, after fixing the problem with downloading package_index.json file, Arduino IDE immediately started complaining about file integrity.

To be honest, I’m not sure why this mess has happened but this is a really annoying thing. Fortunately, the problem can be solved easily if you have correct files.

So, let’s get back to the problem. The problem happens when you open the board manager in Arduino IDE. This is exactly the error that I was getting.

https://downloads.arduino.cc/packages/package_index.json file signature verification failed. File ignored.

As of writing this, there are active discussions both on Arduino Forums and on GitHub.

Fixing the Problem

So it’s really easy to fix this problem provided that you have correct file. This fix applies to Windows.

First off, remove everything in c:\Users\YOURUSER\AppData\Local\Arduino15\ folder.

Download correct package_index.json file and place it in the above mentioned folder.

Restart Arduino IDE.

If this does not help, then I suggest you running a local web server or uploading the file to some sort of web server and specify the URL in Arduino IDE. This can be done from File > Preferences menu.

As you can see on the screen shot below, I have a local web server running and serving the JSON file from it.

I had the same issue and the fix that worked for me is to directing the jvm to use the Windows Certificate Store instead of the ancient cacerts file that comes with java 1.8. This may also help people behind a Cisco Umbrella filter.

One does this by adding the following lines to "C:\Program Files (x86)\Arduino\arduino.l4j.ini" (note, you will need to open a text editor as an administrator, then open the file in question, in order to edit it):

Once you are comfortable with the Arduino software and using the built-in functions, you may want to extend the ability of your Arduino with additional libraries.

What are Libraries?

Libraries are a collection of code that makes it easy for you to connect to a sensor, display, module, etc. For example, the LiquidCrystal library makes it easy to talk to character LCD displays.

There are thousands of libraries available for download directly through the Arduino IDE, and you can find all of them listed at the Arduino Library Reference.

Using the Library Manager

To install a new library into your Arduino IDE you can use the Library Manager (available from IDE version 1.6.2). Open the IDE and click to the "Sketch" menu and then Include Library > Manage Libraries.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Then the Library Manager will open and you will find a list of libraries that are already installed or ready for installation. In this example we will install the Bridge library. Scroll the list to find it, click on it, then select the version of the library you want to install. Sometimes only one version of the library is available. If the version selection menu does not appear, don't worry: it is normal.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Finally click on install and wait for the IDE to install the new library. Downloading may take time depending on your connection speed. Once it has finished, an Installed tag should appear next to the Bridge library. You can close the library manager.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

You can now find the new library available in the Sketch > Include Library menu. If you want to add your own library to Library Manager, follow .

Importing a .zip Library

Libraries are often distributed as a ZIP file or folder. The name of the folder is the name of the library. Inside the folder will be a .cpp file, a .h file and often a keywords.txt file, examples folder, and other files required by the library. Starting with version 1.0.5, you can install 3rd party libraries in the IDE. Do not unzip the downloaded library, leave it as is.

In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library. At the top of the drop down list, select the option to "Add .ZIP Library''.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

You will be prompted to select the library you would like to add. Navigate to the .zip file's location and open it.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Return to the Sketch > Include Library menu. menu. You should now see the library at the bottom of the drop-down menu. It is ready to be used in your sketch. The zip file will have been expanded in the libraries folder in your Arduino sketches directory.

NB: the Library will be available to use in sketches, but with older IDE versions examples for the library will not be exposed in the File > Examples until after the IDE has restarted.

Manual Installation

When you want to add a library manually, you need to download it as a ZIP file, expand it and put in the proper directory. The ZIP file contains all you need, including usage examples if the author has provided them. The library manager is designed to install this ZIP file automatically as explained in the former chapter, but there are cases where you may want to perform the installation process manually and put the library in the libraries folder of your sketchbook by yourself.

You can find or change the location of your sketchbook folder at File > Preferences > Sketchbook location.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Go to the directory where you have downloaded the ZIP file of the library

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Extract the ZIP file with all its folder structure in a temporary folder, then select the main folder, that should have the library name

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Copy it in the "libraries" folder inside your sketchbook.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Start the Arduino Software (IDE), go to Sketch > Include Library. Verify that the library you just added is available in the list.

Lỗi error downloading downloads.arduino.cc libraries libray_index.json

Please note: Arduino libraries are managed in three different places: inside the IDE installation folder, inside the core folder and in the libraries folder inside your sketchbook. The way libraries are chosen during compilation is designed to allow the update of libraries present in the distribution. This means that placing a library in the "libraries" folder in your sketchbook overrides the other libraries versions.

The same happens for the libraries present in additional cores installations. It is also important to note that the version of the library you put in your sketchbook may be lower than the one in the distribution or core folders, nevertheless it will be the one used during compilation. When you select a specific core for your board, the libraries present in the core's folder are used instead of the same libraries present in the IDE distribution folder.

Last, but not least important is the way the Arduino Software (IDE) upgrades itself: all the files in Programs/Arduino (or the folder where you installed the IDE) are deleted and a new folder is created with fresh content. This is why we recommend that you only install libraries to the sketchbook folder so they are not deleted during the Arduino IDE update process.