android - AndroidStudio gradle sync : failed to resolve -


i have new clear android app. want add volley app make http request. developing app android studio using gradle. here screenshot app: enter image description here

ass see going add volley app adding line of code com.mcxiaoke.volley:library-aar:1.0.0 build.gradle file

i tried add retrofit too. gives same type of error: failed resolve: bla bla bla.

so think in situation gradle can not sync other library different com.android......

and have tried add lines of code build.gradle too. nothing changing

 buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'     }     repositories {         mavencentral()     } } 

please advise

edit: after comments added build.gradle files project , module. project:

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.3.0'     } }  allprojects {     repositories {         jcenter()     } } 

module:

apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "23.0.0"      defaultconfig {         applicationid "domain.testgradle"         minsdkversion 11         targetsdkversion 23         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:23.0.1'     compile 'com.mcxiaoke.volley:library:1.0.19' } 

volley published android open source project on jcenter:

dependencies {     compile 'com.android.volley:volley:1.0.0' } 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -