Reputation: 2773
I am trying to run an android
application in Eclipse
using Maven
.
Some dependencies
are unfortunately stopping the run (could not be found or resolved).
I have already checked that I have the dependencies in my repository.
Any suggestion is welcome.
Thank you for your time and consideration.
Pom.xml :
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>4.4.2_r2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>android.support</groupId>
<artifactId>compatibility-v4</artifactId>
<version>19.0.1</version>
</dependency>
Console's error message:
The following artifacts could not be resolved: android:android:jar:4.4.2_r2, android.support:compatibility-v4:jar:19.0.1: Failure to find android:android:jar:4.4.2_r2 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Upvotes: 0
Views: 3574
Reputation: 3787
Due to legal problems, Google do not allow Android JAR files to be installed on the Maven Central repository. You need to manually install these dependencies in your local repository.
To do this you need to clone and execute the Maven Android SDK Deployer.
Upvotes: 1
Reputation: 4361
The android:android:jar:4.4.2_r2 does not exist in your repository. Check really if it exists.
Upvotes: 1