last day (14 days later) » 

11:55 AM
0
A: Android studio - gradle failed to resolve dependencies

BalajiYou need to add a section allprojects at the end of your main build.gradle that defines the repositories for the modules of your project: allprojects { repositories { jcenter() } } and this is the build.gradle (project) buildscript { repositories { jcenter() mavenCentral() } ...

 
its already in app as you suggested, please check it.
 
add this and check it repositories { mavenCentral() }
Add this in your build.gradle dependencies section: compile 'com.squareup.picasso:picasso:2.5.1' instead of 'compile 'com.squareup.picasso:picasso:2.5.2''
 
in two repository places?
 
yes buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() mavenCentral() } }
 
tried but get same failed to resolve issue.
 
11:55 AM
i edited the answer tried that.
add this to src > build.gradle > dependencies:

compile group:'com.squareup.picasso', name:'picasso', version:'2.3.2'
 
just a min
 
try this instead of compile 'com.squareup.picasso:picasso:2.5.2'
ok..
 
so do you ask me to use version 2.3.2 instead of 2.5.2 version
 
yes.. just try it
if it works or not..
 
no, not only Picasso library if add any library I get the same "failed to resolve"
for example add universal library then get the same
 
12:04 PM
Then i suggested u how much i know..
I will check again and let you know if i got any answers..
U r using offline mode ?
 
No gradle is in online mode (offline mode is disabled)
 
ok..
 

last day (14 days later) »