[英]How can I specify which android build tools version in Maven
Looks like the Android Maven plugin always uses the latest build tools version by default. 默认情况下,Android Maven插件似乎始终使用最新的构建工具版本。 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. 该链接似乎表明是这样,但我不知道如何在POM文件中指定值。
https://github.com/simpligility/android-maven-plugin/commit/a52d218964b0fa75db751954b15e316f5b0d3aa4 https://github.com/simpligility/android-maven-plugin/commit/a52d218964b0fa75db751954b15e316f5b0d3aa4
Starting from version 4.3.0 , you can specify a build tools version at the configurations section of the android plugin. 从版本4.3.0开始 ,您可以在android插件的configuration部分指定构建工具版本。 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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.