android studio3.6.1 使用compile方式添加依赖始终无法同步
新建全新项目,使用compile方式添加PictureSelector依赖,
根目录gradle配置:
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
// maven { url 'https://maven.aliyun.com/repository/central' }
// maven { url 'https://maven.aliyun.com/repository/google' }
// maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
// maven { url 'https://maven.aliyun.com/repository/jcenter' }
// maven { url 'https://maven.aliyun.com/repository/public' }
}
app gradle: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//implementation 'com.github.bumptech.glide:glide:4.11.0'
//annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.1'
} 项目始终卡在Gradle:Download picture_library-v2.5.1.pom...。最终显示同步库失败。应该不是网络问题,尝试添加Glide可以正常同步。
同上 3.6.2 无法依赖
同,最新版的Android Studio无法添加依赖
我使用AndroidStudio 3.6.3可以引入,引入不了翻墙试下
不知道为什么最新版的Android Studio无法添加依赖 ERROR: Failed to resolve: com.github.LuckSiege.PictureSelector:v2.5.4:
最新版2.5.3
ERROR: Failed to resolve: com.github.LuckSiege.PictureSelector:picture_library:v2.5.3 Android Studio 3.6.3
翻墙切换多个节点也无法解决
在project下的build.gradle添加如下即可 maven { url 'https://jitpack.io' }