2014-09-24 50 views
0

我在指示中做了我所做的一切。嘗試使用Spring Android的教程示例創建項目。有誰知道如何解決?

dependencies { 
compile 'com.android.support:appcompat-v7:+' 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE' 
compile 'com.fasterxml.jackson.core:jackson-databind:2.3.2' 

}

Error:Could not download artifact 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE:spring-android-rest-template.jar' 

回答

0

編輯,並沒有爲我工作,試試這個,它從官方文檔 check here for more info

dependencies { 
    compile 'org.springframework.android:spring-android-rest-template:2.0.0.M1' 
} 

repositories { 
    maven { 
     url 'http://repo.spring.io/milestone' 
    } 
} 
+0

增加的原因,這是一個很好的解決方案將一些描述是有幫助。 – JBCP 2014-09-24 18:02:55

+0

替換你問的線,但是給出了上面的同樣的錯誤。 – 2014-09-27 13:37:48

+0

@IsraelSousa更新了代碼 – Gilbert92 2014-09-28 15:58:39

相關問題