5

Looks like the Android Maven plugin always uses the latest build tools version by default. Is there a way to specify a specific version?

This link seems to indicate so but I can't figure out how to specify the value in my POM file.

https://github.com/simpligility/android-maven-plugin/commit/a52d218964b0fa75db751954b15e316f5b0d3aa4

PsychicPuppy
  • 146
  • 1
  • 8

1 Answers1

10

Starting from version 4.3.0, you can specify a build tools version at the configurations section of the android plugin. For example:

<plugin>
    <groupId>com.simpligility.maven.plugins</groupId>
    <artifactId>android-maven-plugin</artifactId>
    <version>4.4.3</version>
    <extensions>true</extensions>
    <configuration>                    
      <sdk>
        <platform>25</platform>
        <buildTools>25.0.2</buildTools>
      </sdk>
    </configuration>         
</plugin>
electronix384128
  • 6,625
  • 11
  • 45
  • 67
Anton Klimov
  • 359
  • 4
  • 10
  • could not use the 24.x.x build tools because of a glibc conflict on our build machine. This saved my bacon :) thanks. – mjstam Oct 12 '16 at 19:02