Android Studio Gradle Bintray上传失败:无法签名版本 [英] Android Studio gradle bintray upload failed: Could not sign version
问题描述
运行后
./gradlew bintrayUpload
我遇到以下错误.
:my-library:bintrayUpload FAILED
:my-library:bintrayUpload FAILED
失败:构建失败,并出现异常.
FAILURE: Build failed with an exception.
-
出了什么问题:任务':my-library:bintrayUpload'的执行失败.
What went wrong: Execution failed for task ':my-library:bintrayUpload'.
无法签署版本'0.8.1':HTTP/1.1 400错误的请求[消息:需要私钥,请使用JSON提供它 正文,或者您也可以将其存储在Bintray个人资料中]
Could not sign version '0.8.1': HTTP/1.1 400 Bad Request [message:Private key is required, please supply it by using a JSON body or alternatively you can stored in your Bintray profile]
尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行,以获取更多日志输出.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
建立失败
我以前按照但是,当我尝试更新版本时(如此处所述),它停止了工作.
However, when I tried to update the version (as described here) it stopped working.
推荐答案
I was able to solve this issue by deleting the GPG key in Bintray and then regenerating the keys.
这篇关于Android Studio Gradle Bintray上传失败:无法签名版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!