android - 如何创建发布关闭? (安卓工作室)

标签 android android-gradle-plugin

当我想在 Android Studio 中构建项目时,出现此错误:

Have you created the publish closure? Missing publishVersion. Missing desc. 

半年前我对这个项目进行了最后的更改。现在我从 github 克隆了它,但出现了这个错误。请帮我解决这个问题。

最佳答案

巧合的是,我遇到了这个,错误来自 Novoda 图书馆(我工作的地方!):-)

https://github.com/novoda/bintray-release

您已将此依赖项添加到您的顶级存储库中:

 classpath 'com.novoda:bintray-release:0.8.0'

需要将其添加到您要发布的模块的build.gradle中,也许是applibrary

之后,您需要将 publish 闭包添加到同一文件中:

publish {
    userOrg = 'novoda'
    groupId = 'com.novoda'
    artifactId = 'bintray-release'
    publishVersion = '0.6.1'
    desc = 'Oh hi, this is a nice description for a project, right?'
    website = 'https://github.com/novoda/bintray-release'
}

更多信息写在repo readme中.

关于android - 如何创建发布关闭? (安卓工作室),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54271057/

相关文章:

android - 使用支持设计库中的新 TextInputLayout 时出现 RuntimeException

android - 强制所有布局在非常大的屏幕上具有最大面积

android - AVD 在 Windows 8.1 上崩溃

android - 在Android插件任务上调用doFirst

模块的 Android 设置库依赖项

android - 如何在 Android 中的矩形内剪切圆形路径

Android,引用R.drawable中的东西。使用变量?

Android 单元测试只有放在 androidTest 文件夹中才能编译

android - 我如何在Android代码中知道build.gradle中参数的值是什么

Gradle、Android、Jacoco 和 JUnit5