利用bintray-release插件上传库到Bintray报错HTTP/1.1 404 Not Found [message:Repo ‘maven‘ was not found]问题

利用bintray-release插件上传库到Bintray,在执行命令

gradlew clean build bintrayUpload -PbintrayUser=XXX -PbintrayKey=XXX -PdryRun=false

报错:

XXXX...HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]

原因:
Bintray-release默认帮我们设置为了maven,但我们Bintray帐号中却没有创建名为maven的仓库

解决方法:
在publish中指定仓库名repoName = ‘XXX’

publish {
    ...
    repoName = '你在Bintray创建地仓库名'
}

你可能感兴趣的:(Android学习,问题解决,android)