在android build.gradle文件中添加任何新的依赖项.它总是显示错误

Jit*_*ose 5 android android-studio build.gradle android-gradle-plugin

错误:(42,13)无法解决:com.android.volley:volley:1.0.0

在android build.gradle文件中添加任何依赖项时,它总是显示上述错误.但是同一个项目在不同的机器上运行,相同的依赖项可以添加成功.我搜索很多解决这个问题,但找不到任何解决方案.请帮我解决问题谢谢.

我现在添加任何依赖项时都会遇到同样的错误,但是几周前我可以在项目中添加任何依赖项

的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"

defaultConfig {
    applicationId "myappid"
    minSdkVersion 17
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
    vectorDrawables.useSupportLibrary = true
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

    }
}
}
repositories {
   jcenter({url "http://jcenter.bintray.com/"})
}

dependencies {
   compile fileTree(include: ['*.jar'], dir: 'libs')
   testCompile 'junit:junit:4.12'
   compile 'com.android.support:appcompat-v7:24.0.0'
   compile 'com.android.support:design:24.0.0'
   compile 'com.android.support:cardview-v7:24.0.0'
   compile 'com.android.support:recyclerview-v7:24.0.0'
   compile 'com.android.support:support-vector-drawable:24.0.0'
   // VectorDrawableCompat
   compile 'com.android.support:animated-vector-drawable:24.0.0'
   compile 'com.android.support:support-annotations:24.0.0'
   compile 'com.satsuware.lib:usefulviews:2.3.6'
   compile 'com.github.ganfra:material-spinner:1.1.1'
   compile 'com.google.android.gms:play-services-appindexing:8.1.0'
   compile 'com.ramotion.foldingcell:folding-cell:1.0.1'
   compile 'com.android.volley:volley:1.0.0'
  }
Run Code Online (Sandbox Code Playgroud)

Jit*_*ose 0

我尝试了很多方法来解决我所面临的问题,但没有人可以解决这个问题。我向可能有经验的开发人员寻求帮助,他们告诉我,他们在生活中从未遇到过这样的问题。所以我找到的唯一解决方案是重新安装 android studio。现在它工作得很好。无论如何,感谢您的支持。