简体   繁体   English

无法解决:com.android.volley:volley:1.0.0

[英]Failed to resolve: com.android.volley:volley:1.0.0

Android Studio displayed this error message when I added the following line to the build.gradle line to the dependencies: compile 'com.android.volley:volley:1.0.0' 当我将以下行添加到依赖项的build.gradle行时,Android Studio显示此错误消息: compile 'com.android.volley:volley:1.0.0'

apply plugin: 'com.android.application'

    android {
        compileSdkVersion rootProject.ext.compileSdkVersion
        buildToolsVersion rootProject.ext.buildToolsVersion

        defaultConfig {
            applicationId "com.parse.starter"
            minSdkVersion rootProject.ext.minSdkVersion
            targetSdkVersion rootProject.ext.targetSdkVersion
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        compile 'com.android.support:appcompat-v7:22.2.0'

        compile 'com.parse.bolts:bolts-tasks:1.3.0'
        compile 'com.parse:parse-android:1.13.0'
        compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
        compile 'com.google.code.gson:gson:2.8.0'
        compile 'org.jetbrains:annotations-java5:15.0'
        compile 'com.android.volley:volley:1.0.0'
    }

See if you have jcenter() in your repositories in your project gradle. 查看项目gradle中的存储库中是否有jcenter()。

For example: 例如:

allprojects {
    repositories {
        jcenter()

        maven {

        }

        ivy {

        }
    }
}

暂无
暂无

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

相关问题 无法解决:Android Studio中的com.mcxiaoke.volley:library:1.0.19 - Failed to resolve: com.mcxiaoke.volley:library:1.0.19 in Android Studio “org.json.JSONObject”缺少“Request.Method.GET”和“com.android.volley”JsonObjectRequest arguments 出现故障 - “org.json.JSONObject” missing “Request.Method.GET” and “com.android.volley” JsonObjectRequest arguments appear to out of order Android Volley 错误:com.android.volley.ClientError - Android Volley Error: com.android.volley.ClientError com.android.volley.ServerError 上 Android 工作室 - com.android.volley.ServerError on Android studio 无法解析方法&#39;addToRequestQueque(com.android.volley.toolbox.StringRequest,java.lang.String)&#39; - cannot resolve method 'addToRequestQueque(com.android.volley.toolbox.StringRequest,java.lang.String)' 无法解析方法&#39;with(匿名 com.android.volley.Response.Listener<java.lang.String> )&#39; - Cannot resolve method 'with(anonymous com.android.volley.Response.Listener<java.lang.String>)' HttpClient:错误:com.android.volley.RedirectError - HttpClient: error: com.android.volley.RedirectError 获取 com.android.volley.ServerError - Getting com.android.volley.ServerError 解析失败:coordinatorlayout-1.0.0 in android studio - Failed to resolve: coordinatorlayout-1.0.0 in android studio 带有截击的Android proguard:ClassNotFoundException:找不到类“ com.android.volley.VolleyLog” - Android proguard with volley: ClassNotFoundException: Didn't find class “com.android.volley.VolleyLog”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM