-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: No virtual method position(I)Ljava/nio/ByteBuffer #516
Comments
I believe the library must have been compiled against the wrong JRE (i.e. Java's 11 JRE was used instead of Java's 7/8): in Java 8 the class @dbrgn: can you compile the library from source and check if it still fails the tests? |
I also faced same issues. I'm using this library for Android Project. As @ppkarwasz said, jvmTarget is configured as 1.8. |
My local Java version:
I compiled the library locally:
Then I added the local maven repo to my gradle file:
...and finally forced msgpack to resolve to the snapshot version:
With that configuration, the test passes, so I think you're right. Maybe you can release a fix? |
@xerial, can you make another release? Version 0.8.19 is almost certainly compiled against JRE 11 and linking problems occur, when using another JRE. Maybe it is possible to setup Travis CI to run the test against the jar file, so oversights like this don't occur? |
Got it. Thanks for the investigation. We can add such an integration test using GitHub Action. First, I'll try to automate the release process to make sure to produce Java8 compatible jar files. |
Released 0.8.20 built with jdk8. |
Tthank you! |
@xerial unfortunately this problem is back, the test in the initial post fails again on Android 5 with msgpack-core 0.8.23, but it works fine with 0.8.22. |
@dbrgn Thanks for reporting. We have changed the release process to use GitHub Action, and now it will always use JDK8 for the release. Just release 0.8.24 built with JDK8. |
@xerial great, thank you! |
Since version 0.8.19, our Android CI (using Android 5 and 6 devices) started failing on a msgpack test. Here's a simplified reproducer:
The error message:
This is most probably due to the changes in #514 (cc @ppkarwasz). The test succeeds when running with msgpack-core version 0.8.18.
The text was updated successfully, but these errors were encountered: