error msg

Could not resolve all dependencies for configuration ':app:devDebugRuntimeClasspath'.
Could not determine artifacts for androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/swiperefreshlayout/swiperefreshlayout/1.0.0/swiperefreshlayout-1.0.0.aar'.
Could not HEAD 'https://dl.google.com/dl/android/maven2/androidx/swiperefreshlayout/swiperefreshlayout/1.0.0/swiperefreshlayout-1.0.0.aar'.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

主要 error

Could not resolve all dependencies for configuration

sun.security.provider.certpath.SunCertPathBuilderException:

参考链接

sun.security.validator.ValidatorException: PKIX path building failed..._maven

Solution

我碰到的是网络问题:

  • 切换网络,eg: 连接手机热点试试
  • network type --> Public 切换至 Private(我是这么解决的)

sun.security.validator.ValidatorException: PKIX path building failed..._android_02