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?
4 out of 6 found this helpful

Comments

0 comments

Article is closed for comments.