Simulant
Simulant

Reputation: 20102

Why there is no Android SDK 4.4 in the Maven Repository?

I know that the android sdk .jars in the maven repository are user uploads and not provided by google, as described here. What I want to know is why the upload stopped at version 4.1.1.4, when you look here. Android is at verison 4.4 the uploads are at 4.1.X.X.

Upvotes: 6

Views: 2684

Answers (3)

Mickael
Mickael

Reputation: 3586

Although the Android developers do not publish the android jars to Maven any more, you can easily install them in your local repository and then use them normally:

mvn install:install-file -Dfile=$ANDROID_HOME/platforms/android-19/android.jar -DgroupId=com.google.android -DartifactId=android -Dversion=4.4.2 -Dpackaging=jar

and then

<dependency>
    <groupId>com.google.android</groupId>
    <artifactId>android</artifactId>
    <version>4.4.2</version>
    <scope>provided</scope>
</dependency>

will be successfully resolved both by Eclipse IDE + m2e-android and by android-maven-plugin when running Maven.

Upvotes: 1

drhr
drhr

Reputation: 2281

I know this is an old question, but in case anyone stumbles upon this and is wondering what the options are, you can simply stick to the Android SDK installer without needing the Maven Android SDK Deployer.

All developers on your project will still need to install the Android SDK and set their ANDROID_HOME path.

Install the Android SDK Extras repositories that you need, like "Android Support Repository".

If you want to include, say, "appcompat-v7", here's a Scala build.sbt example (something similar would work in Gradle):

val android_home = System.getenv("ANDROID_HOME")

val android_support = s"file:///$android_home/extras/android/m2repository"

resolvers += "Android Support Repository" at android_support 

libraryDependencies += "com.android.support" % "appcompat-v7" % "19.+"

Upvotes: 1

Manfred Moser
Manfred Moser

Reputation: 29912

We have been doing this as part of the Android4Maven project and just have not had the time to do the build and deployment. We welcome any help...

As an alternative please use my Android Maven SDK Deployer.

Upvotes: 4

Related Questions