It should successfully execute and generate screenshots with Java 17 since AGP 8.0 has a dependency with Gradle 8.0+ which is using Java 17
Actual behaviour
Failing with error:
Unable to make public void sun.nio.ch.ChannelInputStream.close() throws java.io.IOException accessible: module java.base does not "exports sun.nio.ch" to unnamed module @42b6a87e
Expected behaviour
It should successfully execute and generate screenshots with Java 17 since AGP 8.0 has a dependency with Gradle 8.0+ which is using Java 17
Actual behaviour
Failing with error:
Unable to make public void sun.nio.ch.ChannelInputStream.close() throws java.io.IOException accessible: module java.base does not "exports sun.nio.ch" to unnamed module @42b6a87e
Steps to reproduce
Execute command ./gradlew executeScreenshotTests -Precord
Version of the library
Lib version: 5.14.1 Java version: 17 Emulator version: API 30 AGP: 8.0.0