Android Studio gradle bintray upload failed: Could not sign version
Asked Answered
P

2

3

After running

./gradlew bintrayUpload

I am getting the following error.

:my-library:bintrayUpload FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':my-library:bintrayUpload'.

    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]

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

It had been working previously when I installed GPG authentication as described in this tutorial.

However, when I tried to update the version (as described here) it stopped working.

Procurable answered 18/8, 2017 at 6:56 Comment(0)
P
8

I was able to solve this issue by deleting the GPG key in Bintray and then regenerating the keys.

enter image description here

Procurable answered 18/8, 2017 at 6:56 Comment(3)
I just spent 2 hous debugging until I did this and the upload worked. Thanks!Scrappy
Facing same issue. But now getting error as message:The private key requires a passphrase, please supply a passphrase.Leblanc
"2 Hours later": Disabled gpg signingLeblanc
S
2

This happens mostly after the local.properties file is regenerated.

Instead of generating a new key, if you still remember the password, in your local.propreties file just add this line:

bintray.gpg.password= yourpassowrd
Squeeze answered 25/10, 2019 at 14:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.