ViewPagerIndicator: Error: Artifact 'com.viewpagerindicator: library: 2.4.1: library.aar' not found

when i sync gradle I have this error:

Error: Artifact 'com.viewpagerindicator: library: 2.4.1: library.aar' not found.

my gradle:

apply plugin: 'com.android.application' repositories { maven { url "http://dl.bintray.com/populov/maven" } mavenCentral() } android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { minSdkVersion 14 targetSdkVersion 19 } packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:19.1.+' compile 'com.mcxiaoke.volley:library: 1.0.6@aar ' compile 'com.squareup.picasso:picasso:2.2.+' compile 'com.nineoldandroids:library:2.4.0' compile 'com.daimajia.slider:library: 1.1.2@aar ' compile 'com.viewpagerindicator:library: 2.4.1@aar ' compile files('libs/jsoup-1.8.1.jar') } 

what should I do?!

+6
source share
2 answers

Delete

 maven { url "http://dl.bintray.com/populov/maven" } 

and instead

 compile 'com.viewpagerindicator:library: 2.4.1@aar ' 

add:

 compile 'com.mcxiaoke.viewpagerindicator:library: 2.4.1@aar ' 

Clean and sync gradle.

+21
source
 allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } jcenter() mavenCentral() } } 
0
source

Source: https://habr.com/ru/post/983175/


All Articles