Project build Failed because JetBrains

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

Could not resolve all task dependencies for configuration ‘:app:debugAnnotationProcessorClasspath’.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.50.
Required by:
project :app > androidx.lifecycle:lifecycle-compiler:2.0.0
Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.50.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.50/kotlin-stdlib-1.2.50.pom’.
Could not GET ‘<UPPER_URL>’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

Did you manage to solve this? I got the exact same error with 4.27 with android packaging.