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
By default, the plugin automatically uses the minimum required build tools version for the version of Android plugin you're using. Show activity on this post. You can get the latest buildToolsVersion from SDK Manager in Android Studio.
You no longer need to specify a version for the build tools. By default, the plugin automatically uses the minimum required build tools version for the version of Android plugin you're using. Show activity on this post.
If your app requires a specific minimum version of the Android platform, you can specify that version requirement as API level settings in the app's build.gradle file. During the build process, these settings are merged into your app's manifest file.
In native Android applications, the version of build tools and SDK to build them with can be specified directly in the Gradle build script: In Cordova applications, the build file is automatically generated, therefore any manual changes to it will be overwritten.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With