android - 如何创建发布闭包?(安卓工作室)
问题描述
当我想在 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 自述文件中。
推荐阅读
- c++ - CComPtr 分配是线程安全的吗?
- react-native - 从反应本机应用程序向 Auth0 api 发出请求
- html - 如何在 CSS3 网格中将一个单元格覆盖在其他两个单元格上
- java - 从 Flutter 调用 Java 代码会引发未处理的异常:MissingPluginException(未找到方法的实现...)
- javascript - 切换时不显示菜单
- r-markdown - 从 Rmarkdown 中的引文中编织参考文献,启用“已访问:”字段
- nginx - 在 NGINX 服务器上安装了 GHOST,我现在破坏了它的 ssl 配置文件 NGINX 不会重新启动
- python - 将非连续的 15 分钟数据重新采样为 pandas 中的每小时分组数据
- html - 页脚未在移动视图中完全显示
- android - 如何在实时数据库firebase android中存储下载图像url