This problem arises when gradle can not download some important files for the compilation of the project or when these files are corrupted. These files may be damaged during download, either due to a failure in the Internet connection or some other reason.
Solution:
If you have tried to solve the problem by clicking on the links that present the error message, you will realize that nothing is happening and that it does not solve the problem.
To solve the problem, it is first necessary to delete the corrupt files and then download them again. To know which files are corrupt, open the file gradle-wrapper.properties and at the end of the last line of this file, you will find the name of the corrupt file.
The location of these files is usually the path: C: \ Users \ USER \ .gradle \ wrapper \ dists
In the dists folder you should find and delete the folder that has the same name as the corrupt file. In this case it is the folder gradle-2.10-all . This folder contains the corrupt files.
With the folder containing the corrupted files deleted, download the files again by clicking on the link shown in the error message. By clicking on the link, the files will be downloaded again and the problem will be solved. When you click on the link, you will be shown a progress bar like the following:
It only remains to hope that the project finishes cooling and ready.