A problem occurred configuring root project 'android'.> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.2.1.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.2.1.
> Could not get resource 'https://maven.aliyun.com/repository/google/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'.
> Could not HEAD 'https://maven.aliyun.com/repository/google/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
uj5u.com熱心網友回復:
工程目錄/gradle/wapper里面配置的gradletool的版本有問題。建議使用:distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
版本,能避免很多問題
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/117141.html
標籤:Android
上一篇:使用WebViewJavascriptBridge監聽事件WebViewJavascriptBridgeReady不能觸發
