简体   繁体   English

我如何在Maven中指定哪个android构建工具版本

[英]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.

相关问题 如果Android项目不是基于Maven或Gradle的,我如何知道IntelliJ使用的是哪个版本的Android工具 - How can I tell which version of Android tools is used by IntelliJ if an Android project is not Maven or Gradle-based 如何在 Azure DevOps Pipelines 上指定 Android SDK Build Tools 版本 - How specify an Android SDK Build Tools version on Azure DevOps Pipelines 我可以在Android Studio中使用过时版本的SDK构建工具吗? - Can I use obsolete version of SDK build tools in android studio? Maven在错误的Android工具目录中查找-我该如何纠正呢? - Maven is looking in the wrong directory for the Android tools - how can I correct this? 如何在Android Studio中更改构建工具版本 - How to change build tools version in Android Studio 什么是Android SDK构建工具,平台工具和工具?应该使用哪个版本? - What are the Android SDK build-tools, platform-tools and tools? And which version should be used? 如何在config.xml中指定cordova android版本? - How can I specify cordova android version in config.xml? 如何指定较早的构建工具 - How to specify earlier Build Tools 如何指定Android Wearable使用的布局? - How can I specify which layout to use for an Android Wearable? Android Build Tools是否可以始终保持最新状态(而不是指定版本) - Can Android Build Tools always be up to date (instead of specifying version)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM