mp4parser icon indicating copy to clipboard operation
mp4parser copied to clipboard

java.lang.NoSuchMethodError and potential OutOfMemory solution

Open davidnir1 opened this issue 5 years ago • 1 comments

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

davidnir1 avatar Mar 24 '19 21:03 davidnir1

This is fixed in 1.9.41, please close the issue when you have confirmed this.

HBiSoft avatar Oct 04 '19 08:10 HBiSoft