pedrovgs / Shot

Screenshot testing library for Android
Apache License 2.0
1.19k stars 116 forks source link

Support for Java 17 and AGP 8.0 #336

Open thomasflad opened 1 year ago

thomasflad commented 1 year ago

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

vudzkostek commented 1 year ago

It duplicates https://github.com/pedrovgs/Shot/issues/268 and is resolved by https://github.com/pedrovgs/Shot/pull/292