CircleCI-Public / cimg-android

The CircleCI Android Docker Convenience Image.
MIT License
76 stars 40 forks source link

Bug Report: Signing tools missing #130

Open smithaaron opened 9 months ago

smithaaron commented 9 months ago

Describe the bug Signing tools don't seem to be available in the images, meaning signed release builds can't be built.

To Reproduce Try to create a signed release build using CircleCi image.

Expected behavior Build succeeds

Actual Behaviour Build fails with the error

./scripts/bitbucket/build-release.sh: line 7: zipalign: command not found
./scripts/bitbucket/build-release.sh: line 8: apksigner: command not found

Workarounds None that i'm aware of.

Additional context We're using the CircleCi image with bitbucket. Non signed debug builds work just fine. It's just the zipalign and apksigner commands that fail.

smithaaron commented 7 months ago

I've worked around this by referencing the tools by their absolute path, e.g. "$ANDROID_HOME"/build-tools/34.0.0/apksigner. I assume the issue is that they need to be added to the PATH variable.