. Advertisement .
..3..
. Advertisement .
..4..
When following the instructions on installing the Java development kit, you get the error message: “unable to find valid certification path to requested target Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.1-bin.zip’”. This is a very common error. The reason for this error message is that the Java development kit is not available in the default repositories. The solution to this problem is beyond the scope of this blog.
How To Handle The Error “unable to find valid certification path to requested target Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.1-bin.zip’”?
When trying to make a new Gradle project, you may get the following error.
unable to find valid certification path to requested target Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-2.1-bin.zip'
Simply download this ZIP file to resolve this issue. After which, place the ZIP file in the “gradle/wrapper” directory of your project. Now access the “gradle/wrapper/gradle-wrapper.properties” file and change “distributionUrl=gradle-2.6-bin.zip” to “gradle/wrapper/gradle-wrapper.properties”. Renew the project. Now, you have solved your error.
Option 1: Follow these steps
- Simply download this ZIP file
- After which, place the ZIP file in the “gradle/wrapper” directory of your project.
- Now access the “gradle/wrapper/gradle-wrapper.properties” file and change “distributionUrl=gradle-2.6-bin.zip” to “gradle/wrapper/gradle-wrapper.properties”.
- Renew the project.
- Now, you have solved your error.
Option 2: Set gradle distribution path
- To begin, go to the Windows folder.
- Select Preferences from the drop-down menu.
- Then, choose Gradle.
- On the right-hand side of the screen.
- Set the path to the gradle directory in the gradle distribution folder.
- Set it to “C:softwaregradle-2.6” as well.
Conclusion
We hope you enjoyed our article about this confusing error. With this knowledge, we know that you can fix the problem “unable to find valid certification path to requested target Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.1-bin.zip’” quickly by following these steps! If you still have any other questions about fixing this syntax error, please leave a comment below. Thank you for reading!
Leave a comment