Reputation: 31
Gradle sync failed: Cause: unable to find valid certification path to requested target
org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.71. ..............
I deleted the file C:\Users\Ahmad.gradle\cashes and the error message changed to this:
Could not resolve com.android.tools.build:gradle:3.6.3. No cached version of com.android.tools.build:gradle:3.6.3 available for offline mode
I don't want to turn off offline mode because that will make the 1st error message to come back again.
I use Java
Upvotes: 2
Views: 2329
Reputation: 31
The answer is:
To Create a JAVA_HOME environment variable with a valid JDK location & select it from (Project Structure > JDK Location) @ Android Studio:
Also I did turn the Firewall program off so I think its a connection problem maybe.
Upvotes: 1