I got the following Error in android Studio 3.0,when I sync gradle.
Gradle 'Projectname' project refresh failed.
Error:Cause: unable to find valid certification path to requested target
I got the following Error in android Studio 3.0,when I sync gradle.
Gradle 'Projectname' project refresh failed.
Error:Cause: unable to find valid certification path to requested target
I had faced exact same issue to my existing projects after upgrading Android Studio 3.0.
I was able to resolve it with changing gradle script like below.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:**3.0.0**'
}
}
distributionUrl=https\://services.gradle.org/distributions/**gradle-4.1-all.zip**
I hope this is helpful for you
Note: My Android Studio info
Android Studio 3.0
Build #AI-171.4408382, built on October 21, 2017
JRE: 1.8.0_152-release-915-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
Delete
jcenter()
and Change The Repositories in thebuild.gradle
file to the following format: