It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to create an Android release build

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

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

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,055 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you