mp4parser
mp4parser copied to clipboard
java.lang.NoSuchMethodError and potential OutOfMemory solution
Hey all, i went through a lot of open issues with no success. I got the popular OutOfMemory exception in my app (when i used 1.9.27), which seems to go away using 1.9.37 by adding these lines to my build.gradle file:
implementation 'org.mp4parser:isoparser:1.9.37' implementation 'org.mp4parser:muxer:1.9.37' implementation 'org.mp4parser:streaming:1.9.37'
Now i am getting this error:
java.lang.NoSuchMethodError: No virtual method rewind()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)
I read in some threads that this is somehow related to JDK version differences, and couldn't find a proper solution throughout the issues section here or the internet in general. Did anybody manage to figure this out?
Thanks
This is fixed in 1.9.41
, please close the issue when you have confirmed this.