应用 Glide 依赖项时出错
Getting error while applying Glide dependency
*Error:(30, 13) Failed to resolve: com.github.bumptech.glide:glide:4.0.0-RC0**
在文件中显示
在项目结构对话框中显示
我正在使用 android 工作室版本 2.3.2
添加你的Gradle
repositories {
mavenCentral() // jcenter() works as well because it pulls from Maven Central
}
dependencies {
compile 'com.github.bumptech.glide:glide:4.0.0-RC0'
compile 'com.android.support:support-v4:25.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0'
}
或者 Maven:
<dependency>
<groupId>com.github.bumptech.glide</groupId>
<artifactId>glide</artifactId>
<version>4.0.0-RC0</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
<version>r7</version>
</dependency>
<dependency>
<groupdId>com.github.bumptech.glide</groupId>
<artifactId>compiler</artifactId>
<version>4.0.0-RC0</version>
<optional>true</optional>
</dependency>
尝试不同的版本
compile 'com.github.bumptech.glide:glide:3.8.0'
或
compile 'com.github.bumptech.glide:glide:3.5.2'
compile 'com.android.support:support-v4:22.0.0'
*Error:(30, 13) Failed to resolve: com.github.bumptech.glide:glide:4.0.0-RC0**
在文件中显示
在项目结构对话框中显示
我正在使用 android 工作室版本 2.3.2
添加你的Gradle
repositories {
mavenCentral() // jcenter() works as well because it pulls from Maven Central
}
dependencies {
compile 'com.github.bumptech.glide:glide:4.0.0-RC0'
compile 'com.android.support:support-v4:25.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0'
}
或者 Maven:
<dependency>
<groupId>com.github.bumptech.glide</groupId>
<artifactId>glide</artifactId>
<version>4.0.0-RC0</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
<version>r7</version>
</dependency>
<dependency>
<groupdId>com.github.bumptech.glide</groupId>
<artifactId>compiler</artifactId>
<version>4.0.0-RC0</version>
<optional>true</optional>
</dependency>
尝试不同的版本
compile 'com.github.bumptech.glide:glide:3.8.0'
或
compile 'com.github.bumptech.glide:glide:3.5.2'
compile 'com.android.support:support-v4:22.0.0'