Latest circleci-image/android failing with strange gradle exception


~2 days ago, our android builds started failing everytime with a NPE from Gradle.

 FAILURE: Build failed with an exception.
[19:55:35]: ▸ * What went wrong:
[19:55:35]: ▸ A problem occurred configuring project ':app'.
[19:55:35]: ▸ > java.lang.NullPointerException (no error message)
[19:55:35]: ▸ * Try:
[19:55:35]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[19:55:35]: ▸ BUILD FAILED
[19:55:35]: ▸ Total time: 3 mins 37.501 secs

We changed the build image in our circle.yml back a revision to circleci/android@sha256:764f53c952555db74d1227c261704460cf5dbd5d04983ed6c32ca8d4c2c71de2 and our builds are working again.

Anyone have insights?

My guess is the switch to jdk8-slim for the base image broke things…


Working for me… I am also using a Circleci Android image with the base image openjdk:8-jdk-slim. Is this gradle issue still happening to you?


As of yesterday, it started working again. I honestly can’t explain it.

The image we pinned to disappeared from dockerhub, so we moved back to ‘latest’, and have had some successful builds.