当我想在 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
中,也许是app
或library
?
之后,您需要将 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/