Q:

Android maven dependency for API level 15

Is it possible to add dependency in my Android project with Maven support for API level 15 ?
I have followed definition:
<dependency>
    <groupId>com.google.android</groupId>
    <artifactId>android</artifactId>
    <version>4.0.1.2</version>
    <scope>provided</scope>
</dependency>

where 4.0.1.2 is API level 14. next available is 4.1.1.4 which is API level 16.

A:

I don't think you really need to downgrade to a previous api version via a dependency. Can't you just change the platform level in the plugin config?
        <plugin>
            <groupId>com.jayway.maven.plugins.android.generation2</groupId>
            <artifactId>android-maven-plugin</artifactId>
            <configuration>
                <sdk>
                    <platform>15</platform>
                </sdk>
                <undeployBeforeDeploy>true</undeployBeforeDeploy>
            </configuration>
        </plugin>

And in project.properties:
target=android-15

