android - 无法解析 : com. android.volley :volley:1. 1.0 ....glide :3. 7.0

标签 android gradle android-volley release android-glide

'gradle' 'import' 已完成。 然后我遇到了问题。帮助。

D:\bg.jou\GanggoContacts\build.gradle

Error:(25, 13) 

Failed to resolve: com.android.volley:volley:1.1.0
<a href="openFile:D:/bg.jou/GanggoContacts_v34_insert_error/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:(26, 13)

 Failed to resolve: com.github.bumptech.glide:glide:3.7.0
<a href="openFile:D:/bg.jou/GanggoContacts_v34_insert_error/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

不完整的问题

buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.google.gms:google-services:3.1.0'
    }
}

dependencies {
    //compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.google.android.gms:play-services-gcm:11.8.0'
    compile fileTree(include: '*.jar', dir: 'libs')

    compile project(':fingerpush_3.0.7')
    compile 'com.android.volley:volley:1.1.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
}

最佳答案

jcenter() is now deprecated.

在 app 的 build.gradle 中使用它: 'com.android.volley:volley:1.2.0'

这在 build.gradle 中:

repositories {
    google()
    mavenCentral()
}

关于android - 无法解析 : com. android.volley :volley:1. 1.0 ....glide :3. 7.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48654355/

相关文章:

java - RepositoryRestMvcConfiguration 无法转换为 javax.servlet.Servlet

android - Android Studio中的错误

java - 读取 Android POST 请求的回显

android - 如何使用动画从大标题到小标题自定义应用栏?

android - 在android中设置 ImageView 的高度

android - 如何更改 Gradle 中的 libs 目录?

java - Android 应用程序未在 Virtual Box 上运行吗?

android - 滚动时在自定义 listView 中显示数据时出错

java - NullPointerException : Attempt to read from field 'com. android.volley.Cache$Entry com.android.volley.Response.cacheEntry