Gradle打包并發布aar 使用http://www.lxweimin.com/p/8f957421fc78這篇文章中的方法
然后報錯
Could not create package 'joleyii/maven/Chrysanthemum': HTTP/1.1 404 Not Found
最終找到原因如果不設置userOrg也就是organization的話默認是你的名字為organization
我出現則個問題的原因是名字是joleyii但是organization是joelyii(兩個都是我的常用名)
將下邊pkg中增加userOrg ='joelyii'即可:
pkg {
repo ="maven"
name ="Chrysanthemum"
userOrg ='joelyii'
// #修改# // 在 jcenter 上面的項目名字
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish =true
}
找了一上午找到的,得出的經驗教訓是一定要看官方文檔。。
詳見:https://github.com/bintray/gradle-bintray-plugin#readme