2015-10-13 37 views
0
Error:(27, 13) Failed to resolve: org.quanqi:android-view-pager-indicator:0.9.0 
..... 

Error:(29, 13) Failed to resolve: com.astuetz:pagerslidingtabstrip:1.0.1 
.... 
Error:(28, 13) Failed to resolve: com.sothree.slidinguppanel:library:3.1.1 
.... 

我gradle這個依賴是無法解析背後的代理

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    //testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.0.1' 
    compile 'com.android.support:design:23.0.1' 
    compile 'org.quanqi:android-view-pager-indicator:0.9.0' 
    compile 'com.sothree.slidinguppanel:library:3.1.1' 
    compile 'com.astuetz:pagerslidingtabstrip:1.0.1' 
} 

我的代理在gradle.properties設置gradle這個依賴...(憑證未顯示)

systemProp.http.proxyPassword=xxxxxx 
systemProp.http.proxyHost=x.x.x.x 
[email protected] 
systemProp.http.proxyPort=8080 

的gradle仍構建失敗......當我在防火牆之外構建項目時,它的工作完美無缺,那麼就不需要代理。我使用過Android Studio 1.4

我已經嘗試以下,並沒有成功: -

Using ViewPagerIndicator library with Android Studio and Gradle

Use HTTP as default in IntelliJ or Android Studio

我已經爲Andriod的Studio和SDK配置代理服務器設置。

回答

0

這三個R庫項目,並將其添加爲

build.gradle導入庫模塊

compile project(':library_projectname') 

settings.gradle

include ':app', ':library_projectname' 
+0

的添加此行不工作...問題不在建設中..問題來了,因爲gradle無法從庫中獲取庫, – Sabir