Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to create an Android release build

David Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 9, 2020

I am trying to create an Android release build following https://bitbucket.org/blog/automate-publishing-your-android-application-with-bitbucket-pipelines-and-gradle  and we are hitting a few problems.

 

I've created a upload key and cert on Google Console and a Google service account.

The output from the Build task (assembleRelease) does not sign the build.  The reason I say this is two reasons, one the APK gets names "unsigned" but more so when I try to upload the APK to Release Management / App Release of Google Console I get an error stating "Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures", which is the same message if I try to upload a Debug build I've built using Studio.   I can manually upload a Release APK built via Studio so I think my Upload key is value.

 

Any thought on what I may be missing?  Or suggestions of what to look at ... or a working gradle script and pipeline yml would be greatly appreciated.

 

 

 

2 answers

0 votes
Dhaval2404
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2020

@David Brown Did you find any solution? I'm also facing the similar issue.

deepak_rathi September 3, 2020

Wasn't able to do it using bitbucket's own ci image, that was still giving me an error but then I used some different image.

Renato Prosofsky December 3, 2020

@deepak_rathi @Dhaval2404 i'm facing the same issue, do you guys have resolved?

0 votes
deepak_rathi March 30, 2020

You must sign your build with the keystore in order to create a release build 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events