By adding any new dependencies in the android build.gradle file. he always shows an error

Error: (42, 13) Failed to solve: com.android.volley: volley: 1.0.0

When adding any dependencies to the android build.gradle file, the error above is always displayed. But the same project runs on a different machine, and the same dependencies can be successful. I am looking for a lot to solve this problem, but I can not find a solution. Please help me solve the problem. Thanks.

I am facing the same error when adding any dependencies now, but a few weeks before I can add any dependencies to my project

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' } 
+5
source share
1 answer

I try many ways to solve the problem I am facing, but no one can fix this problem. I ask for help, maybe the experience of the developer, they told me that they never encounter such a problem in life. So the only solution I found is to reinstall Android studio. Now it works fine. Thanks anyway for your support.

0
source

All Articles