msgpack / msgpack-java

MessagePack serializer implementation for Java / msgpack.org[Java]
http://msgpack.org/
Apache License 2.0
1.41k stars 321 forks source link

Missing sun.nio.ch.DirectBuffer class #724

Closed baole closed 8 months ago

baole commented 1 year ago

I'm building Android app with Proguard/R8 enabled and getting following error

ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /bitrise/src/app/build/outputs/mapping/staging/missing_rules.txt.
ERROR: R8: Missing class sun.nio.ch.DirectBuffer (referenced from: long org.msgpack.core.buffer.DirectBufferAccess.getAddress(java.nio.Buffer))

Android/Gradle build Java 17 Msgpack ver v0.9.3

Any tips on how to fix it?

xerial commented 1 year ago

See https://github.com/msgpack/msgpack-java#java-17-support