如何创建发布关闭?(Android Studio) [英] How to create publish closure? (Android Studio)

查看:342
本文介绍了如何创建发布关闭?(Android Studio)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When I want to build my project in Android Studio, I get this error:

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

上半年,我对该项目进行了最后更改.现在,我已经从github克隆了它,并且出现了这个错误.请帮助我解决这个问题.

Half year ago I've made last changes on this project. Now I've cloned it from github and I got this error. Please help me with this problem.

推荐答案

巧合,我碰到了这个,错误是出自Novoda库(在我工作的地方!):-)

Coincidence I bumped into this, the error is from a Novoda library (where I work!) :-)

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

您已将此依赖项添加到顶级仓库中

You have added this dependency to your top level repo:

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

是否需要将其添加到要发布的模块的 build.gradle 中,也许是 app library ?

it needs to be added to the build.gradle of the module you want to release, perhaps app or library?

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

After that you need to add the publish closure to the same file:

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'
}

更多信息写在回购自述文件中.

这篇关于如何创建发布关闭?(Android Studio)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆