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:
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
Post a Comment