close

[Solved] 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’

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to create new gradle project and I am facing 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’ in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How 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’ Error Occurs ?

I am trying to create new gradle project and I am facing 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'

How To Solve 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’ Error ?

  1. How To Solve 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’ Error ?

    To Solve 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’ Error Just download this ZIP file. Then, Move the ZIP file into your project’s “gradle/wrapper” directory Now, Open “gradle/wrapper/gradle-wrapper.properties” file And Make this edit “distributionUrl=gradle-2.6-bin.zip” Refresh project. And now your error must be solved.

  2. 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’

    To Solve 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’ Error Just download this ZIP file. Then, Move the ZIP file into your project’s “gradle/wrapper” directory Now, Open “gradle/wrapper/gradle-wrapper.properties” file And Make this edit “distributionUrl=gradle-2.6-bin.zip” Refresh project. And now your error must be solved.

Solution 1: follow this step

  1. Just download this ZIP file.
  2. Then, Move the ZIP file into your project’s “gradle/wrapper” directory
  3. Now, Open “gradle/wrapper/gradle-wrapper.properties” file
  4. And Make this edit “distributionUrl=gradle-2.6-bin.zip”
  5. Refresh project.
  6. And now your error must be solved.

Solution 2: set gradle distribution path

  1. First of all navigate to Windows
  2. Click on Preferences
  3. Then select Gradle.
  4. On the right hand pane.
  5. set folder under gradle distribution to path to gradle directory.
  6. And set it to “C:\software\gradle-2.6”

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment