0
使用compile添加gradle項目對我來說工作得非常好,但是在更新Android Studio到1.2.2之後,或者在它之前的版本中,我注意到添加庫是不再工作了。Android studio 1.2.2 gradle library
因此,例如,我試圖添加this,我做了「立即同步」,它很成功,但圖書館似乎沒有被識別。當我嘗試在Java中使用ProgressWheel並且按Ctrl + Enter時沒有找到該庫,任何人都會知道我應該怎麼做?
dependencies {
compile 'com.android.support:support-v4:21.0.0'
compile 'com.google.android.gms:play-services:+'
compile files('libs/universal-image-loader-1.9.3.jar')
compile 'com.romainpiel.shimmer:library:[email protected]'
//the above libraries were added before the update, everything was
//working fine, the below isn't
compile 'com.pnikosis:materialish-progress:1.5'
}
請注意,我嘗試了很多其他庫,都有相同的結果。
同樣的事情,爲什麼不同步抱怨順便說一句? –
@AdroidFreak奇。如果我將它添加到我的項目中,它對我來說工作得很好。爲什麼它不抱怨它找不到它?那裏有數百萬的Maven倉庫,它無法知道它在哪裏;所有它可以知道的是,它不存在於它給出的任何存儲庫中。 – afollestad
我也試過這個,我用它實際上,它不工作https://github.com/rahatarmanahmed/CircularProgressView –