繁体   English   中英

Android Studio 1.2.2 Gradle库

[英]Android studio 1.2.2 gradle library

使用gradle项目添加compile一直很有效,但是在将Android Studio更新为1.2.2或之前的版本后,我注意到添加库已无法正常工作。

因此,例如,我尝试添加此文件,然后执行了“立即同步”,该操作成功完成,但似乎无法识别该库。 当我尝试在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:1.4.0@aar'
    //the above libraries were added before the update, everything was 
    //working fine, the below isn't 
    compile 'com.pnikosis:materialish-progress:1.5'
   }

请注意,我尝试了许多其他库,所有库的结果相同。

项目README( https://github.com/pnikosis/materialish-progress的首页 )说它在Maven Central上 默认情况下,Android Studio使用jCenter (通过Bintray)。 将此添加到模块的build.gradle文件中:

repositories {
    mavenCentral()
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM