android - Gradle构建上的Axion发行插件错误

标签 android gradle azure-devops build.gradle gradle-plugin

我一直在努力构建一个Android库,并使用Gradle将其发布到Azure Devops Artifacts。

我终于在昨天发布了它,今天我遇到了需要自动对其进行版本控制的需求,所以我尝试使用此插件:
https://plugins.gradle.org/plugin/pl.allegro.tech.build.axion-release
https://axion-release-plugin.readthedocs.io/en/latest/

因此,缩短它的使用时间,我根本无法应用该插件,甚至没有使用它,只是应用了它,它立即崩溃。

有什么想法吗?

我基于此应用:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "pl.allegro.tech.build:axion-release-plugin:1.11.0"
  }
}

apply plugin: "pl.allegro.tech.build.axion-release" version '1.11.0'

我收到的错误是这样的:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'core'.

* What went wrong:
A problem occurred evaluating root project 'core'.
> Cannot invoke method version() on null object

最佳答案

好的,这是版本信息:apply plugin: "pl.allegro.tech.build.axion-release" version '1.11.0'
使用:apply plugin: "pl.allegro.tech.build.axion-release"
有用。

关于android - Gradle构建上的Axion发行插件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60454349/

相关文章:

azure - 从 terraform 创建服务主体时出现权限不足,无法完成操作的错误

java - WebView抓取表单数据

android - Gradle 构建但不运行 android 项目

android - 类似于 Gmail Android 应用程序的导航

android - Robolectric, Gradle, Espresso with Flavours

java - 为什么 gradle 不返回其他项目的依赖关系?

android - 在循环执行中提供延迟

java - gradle lockfile源代码控制

azure-devops - 没有 Azure DevOps 管道 - 构建 - 任务

django - 使用 Devops CI/CD 将 Django Web App 部署到 Azure 应用服务