I want to sign my apk in the Gradle Runner step in order to publish it to Crashlytics. I uploaded my .jks file to the Code Signing section in the Workflow editor.
My signingConfig is:
signingConfigs {
mySigningConfig{
keyAlias β[HARDCODED_STRING]β
keyPassword β[HARDCODED_STRING]β
storeFile file(System.getenv(βHOMEβ) + β/keystores/mysigningfile.jksβ)
storePassword β[HARDCODED_STRING]β
}
}
But the build fails with this message:
What iβm doing wrong?
How can i refer inside my build.gradle to the .jks file i uploaded in the Code Signing section?!
Hey @yallam08!
Did you download your keystore to the same location?
https://devcenter.bitrise.io/android/code-signing/#download-your-keystore-from-generic-file-storage
Regarding to the docs above, you will need a file downloader step with - source: $BITRISEIO_ANDROID_KEYSTORE_URL
and the - destination: "$HOME/keystores/mysigningfile.jks"
Please try that if not already.
2 Likes
Thank you so much, this solved my problem. The docs are not so clear though, not mentioned that this step must be done first.
1 Like
Thanks for the info! Happy Building! 

Hi!
Iβll be closing this thread, but feel free to ping us / create a new #issues:build-issues report any time if you have an issue or if you have any questions! 
Happy Building! 