Android Builds Fail with "java.lang.ClassNotFoundException: jdk.internal.reflect.GeneratedSerializationConstructorAccessor1"

The CircleCI Android images were upgraded from Java 8 to Java 11. If you suddenly notice the error

java.lang.ClassNotFoundException: jdk.internal.reflect.GeneratedSerializationConstructorAccessor1

This can be due to an issue with JoCoCo. If JoCoCo is in use, you can try adding the following to your JoCoCo config

excludes = ['jdk.internal.*']
Was this article helpful?
7 out of 11 found this helpful