I have no reason to think this is a defect. But I am unable to resolve the situation.
To replicate:
- Install Android Studio
- Accept various certs
- start a new app project selecting defaults
- wait for sync to fail
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘My Application’.Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10.
Required by:
project :
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.4.10/kotlin-gradle-plugin-1.4.10.pom’.
Could not GET ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.4.10/kotlin-gradle-plugin-1.4.10.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
…
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
The above mentioned links resolve and download from chrome directly.
What I have tried:
- The exact same process on a Windows 10 VM, and it worked. Did not request certs. Worked.
- Removing every trace of Gradle, Java, JRE, JDK, Android Studio, etc. from machine and re-installing
- Adding certs to cacerts file from command line.
- Adding certs to cacerts from within Android Studio. File->Settings->Tools->Server Certificates
Not using a proxy. Not using windows firewall.
Thank you.