2017-04-20 51 views
0

我已經從GitHub下載了一個示例項目(TimePicker-master),之後當我嘗試同步該項目時出現此錯誤。 搖籃「TimePicker-master'project刷新失敗 錯誤:連接重置安卓工作室連接重置錯誤

enter image description here

我已經嘗試不同的代理,但沒有奏效。因爲我不知道甚至是什麼問題?而我沒有找到在線搜索的原因 現在我得到同樣的問題,當我嘗試下載intelliJ插件,而我使用代理。 這是什麼問題,我該如何解決它?(對初學者友好且有幫助)

+0

嘗試的Kerio或思科肯定的,連接重置僅與我們的限制,我們的國家,某些時候政府塊gradle ip有時候gradle塊iranian ip's,並且還有另一種可能性,也許你的項目使用了一個現在處於關閉狀態的存儲庫。 –

+0

我正在嘗試kerio。這個依賴是一個問題嗎? classpath'com.novoda:bintray-release:0.3.4' –

+0

檢查您的gradle回購站並使用VPN非代理服務器,因爲大多數時間代理服務器不會像VPN一樣工作 –

回答

0

打開timepicker-library的gradle文件並從中刪除下面的代碼並嘗試再次同步項目。

apply plugin: 'bintray-release' 

dependencies { 
    classpath 'com.novoda:bintray-release:0.3.4' 
} 

publish { 
    userOrg = 'erz05' 
    groupId = 'com.github.erz05' 
    artifactId = 'TimePicker' 
    version = '0.1.5' 
    description = 'Android Library for TimePicker View' 
    website = 'https://github.com/erz05/TimePicker' 
} 

希望這會幫助你。

+0

已經做到了,它沒有。謝謝你的迴應,雖然 –

+0

我再次做到了,並將我的依賴關係中的gradle版本從2.2.2更改爲2.3.0,並解決了問題嗎?有誰知道爲什麼? –

0

嘗試這樣做增加mavenCentral()gradle

buildscript { 
    repositories { 
     jcenter() 
     mavenCentral() // This repo should have the gradle plugin 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:0.12.2' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

也檢查您是否脫機工作,並取消其