Over the past two days, I tried to import this library through Maven:
https://github.com/JakeWharton/Android-ViewPagerIndicator
I have to say that I am new to maven, so if this is easy to solve, please forgive me, I searched for the problem and studied the error pages, but I could not find a solution to this problem. But every time I try, I get this error:
c:\JakeWharton-Android-ViewPagerIndicator-3db7585>mvn install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.viewpagerindicator:library:apklib:2.2.0 [WARNING] 'build.plugins.plugin.version' for com.jayway.maven.plugins.android.ge neration2:maven-android-plugin is missing. @ line 36, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.viewpagerindicator:sample:apk:2.2.0 [WARNING] 'build.plugins.plugin.version' for com.jayway.maven.plugins.android.ge neration2:maven-android-plugin is missing. @ line 48, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Android-ViewPagerIndicator (Parent) [INFO] Android-ViewPagerIndicator [INFO] Android-ViewPagerIndicator Sample [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Android-ViewPagerIndicator (Parent) 2.2.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ parent --- [INFO] Installing c:\JakeWharton-Android-ViewPagerIndicator-3db7585\pom.xml to C :\Users\Cracksoldier\.m2\repository\com\viewpagerindicator\parent\2.2.0\parent-2 .2.0.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Android-ViewPagerIndicator 2.2.0 [INFO] ------------------------------------------------------------------------ Downloading: http:
Throug my Issues github post I got information that I need to change compatibility from r4 to r6 in pom.xml, so I tried and changed it from:
<android.support.version>r4</android.support.version>
:
<android.support.version>r6</android.support.version>
But it didn’t work, so I went over and tried it like that. I edited the Depencies section:
<dependency> <groupId>android.support</groupId> <artifactId>compatibility-v4</artifactId> <version>${android.support.version}</version> </dependency>
:
<dependency> <groupId>android.support</groupId> <artifactId>compatibility-v4-r6</artifactId> <version>${android.support.version}</version> </dependency>
and I also tried replacing "compatible-v4" with:
Compatibility-v6 and Compatibility-r6
but nothing happened. I also checked the .m2 directory and it is not there. I also believed that Maven is installed prokornno, and this is so. Hope someone can help me.
Best wishes