Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

android 7.1 NoSuchMethodError #10

Open
wangshufu opened this issue Jan 15, 2021 · 0 comments
Open

android 7.1 NoSuchMethodError #10

wangshufu opened this issue Jan 15, 2021 · 0 comments

Comments

@wangshufu
Copy link

new AsyncTask<String, Void, Bitmap>() {
@OverRide
protected Bitmap doInBackground(String... strings) {
try {
return HeifReader.decodeFile(strings[0]);
// return HeifReader.decodeStream(new URL(strings[0]).openStream());
} catch (Exception ex) {
Log.e(TAG, "invalid URL", ex);
return null;
}
}
@OverRide
protected void onPostExecute(Bitmap result) {
progress.dismiss();
showImage(result);
}
}.execute("/sdcard/nut/IMG_61072668.heic");

This file exists!!!

Caused by: java.lang.NoSuchMethodError: No virtual method limit(I)Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)
at org.mp4parser.AbstractBoxParser.parseBox(AbstractBoxParser.java:84)
at org.mp4parser.BasicContainer.initContainer(BasicContainer.java:107)
at org.mp4parser.IsoFile.(IsoFile.java:57)
at org.mp4parser.IsoFile.(IsoFile.java:52)
at jp.yohhoy.heifreader.HeifReader.decodeByteArray(HeifReader.java:139)
at jp.yohhoy.heifreader.HeifReader.decodeFile(HeifReader.java:179)
at jp.yohhoy.heifreader.MainActivity$1$1.doInBackground(MainActivity.java:72)
at jp.yohhoy.heifreader.MainActivity$1$1.doInBackground(MainActivity.java:68)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:761) 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant