天天看點

Unable to find valid certification path to requested target

版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。 https://blog.csdn.net/bitree1/article/details/49923915

處理方法1:

在使用者目錄下找到隐藏檔案夾.gradle,在該目錄下找到檔案gradle.properties(預設不存在,需要手動建立),将下面内容寫入檔案中

<!-- lang: shell -->
systemProp.http.proxyHost=www.proxyhost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

systemProp.https.proxyHost=www.proxyhost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
           

處理方法2 :我的問題是:沒找到gradle路徑,我的解決方法是:windows--->preferences-->gradle--->folder-->填寫位址(gradle的安裝路徑)我的是E:/tools/gradle

如下圖:

      希望對大家 有用