Skip to content
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

java.lang.ClassNotFoundException: Didn't find class "com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory" #2752

Open
keybon opened this issue Nov 23, 2023 · 0 comments

Comments

@keybon
Copy link

keybon commented Nov 23, 2023

**android version 12 samsung SM-N9760 API 31

What should be done?

libs/native-imagetranscoder-1.12.1.jar

Caused by:

unhandled exception
java.lang.RuntimeException: Dependency ':native-imagetranscoder' is needed to use the default native image transcoder.
at com.facebook.imagepipeline.nativecode.NativeImageTranscoderFactory.getNativeImageTranscoderFactory(NativeImageTranscoderFactory.java:31)
at com.facebook.imagepipeline.transcoder.MultiImageTranscoderFactory.getNativeImageTranscoder(MultiImageTranscoderFactory.java:68)
at com.facebook.imagepipeline.transcoder.MultiImageTranscoderFactory.createImageTranscoder(MultiImageTranscoderFactory.java:47)
at com.facebook.imagepipeline.producers.ResizeAndRotateProducer$TransformingConsumer.onNewResultImpl(ResizeAndRotateProducer.java:161)
at com.facebook.imagepipeline.producers.ResizeAndRotateProducer$TransformingConsumer.onNewResultImpl(ResizeAndRotateProducer.java:83)
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97)
at com.facebook.imagepipeline.producers.AddImageTransformMetaDataProducer$AddImageTransformMetaDataConsumer.onNewResultImpl(AddImageTransformMetaDataProducer.java:46)
at com.facebook.imagepipeline.producers.AddImageTransformMetaDataProducer$AddImageTransformMetaDataConsumer.onNewResultImpl(AddImageTransformMetaDataProducer.java:30)
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97)
at com.facebook.imagepipeline.producers.MultiplexProducer$Multiplexer.onNextResult(MultiplexProducer.java:452)
at com.facebook.imagepipeline.producers.MultiplexProducer$Multiplexer$ForwardingConsumer.onNewResultImpl(MultiplexProducer.java:513)
at com.facebook.imagepipeline.producers.MultiplexProducer$Multiplexer$ForwardingConsumer.onNewResultImpl(MultiplexProducer.java:506)
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97)
at com.facebook.imagepipeline.producers.EncodedMemoryCacheProducer$EncodedMemoryCacheConsumer.onNewResultImpl(EncodedMemoryCacheProducer.java:166)
at com.facebook.imagepipeline.producers.EncodedMemoryCacheProducer$EncodedMemoryCacheConsumer.onNewResultImpl(EncodedMemoryCacheProducer.java:111)
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97)
at com.facebook.imagepipeline.producers.DiskCacheWriteProducer$DiskCacheWriteConsumer.onNewResultImpl(DiskCacheWriteProducer.java:129)
at com.facebook.imagepipeline.producers.DiskCacheWriteProducer$DiskCacheWriteConsumer.onNewResultImpl(DiskCacheWriteProducer.java:86)
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97)
at com.facebook.imagepipeline.producers.NetworkFetchProducer.notifyConsumer(NetworkFetchProducer.java:179)
at com.facebook.imagepipeline.producers.NetworkFetchProducer.handleFinalResult(NetworkFetchProducer.java:160)
at com.facebook.imagepipeline.producers.NetworkFetchProducer.onResponse(NetworkFetchProducer.java:112)
at com.facebook.imagepipeline.producers.NetworkFetchProducer$1.onResponse(NetworkFetchProducer.java:73)
at com.icbc.im.utils.imagecontroller.ssl.OkHttpNetworkFetcher$2.onResponse(OkHttpNetworkFetcher.java:103)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.ClassNotFoundException: com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:454)
at java.lang.Class.forName(Class.java:379)
at com.facebook.imagepipeline.nativecode.NativeImageTranscoderFactory.getNativeImageTranscoderFactory(NativeImageTranscoderFactory.java:21)
at com.facebook.imagepipeline.transcoder.MultiImageTranscoderFactory.getNativeImageTranscoder(MultiImageTranscoderFactory.java:68) 
at com.facebook.imagepipeline.transcoder.MultiImageTranscoderFactory.createImageTranscoder(MultiImageTranscoderFactory.java:47) 
at com.facebook.imagepipeline.producers.ResizeAndRotateProducer$TransformingConsumer.onNewResultImpl(ResizeAndRotateProducer.java:161) 
at com.facebook.imagepipeline.producers.ResizeAndRotateProducer$TransformingConsumer.onNewResultImpl(ResizeAndRotateProducer.java:83) 
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97) 
at com.facebook.imagepipeline.producers.AddImageTransformMetaDataProducer$AddImageTransformMetaDataConsumer.onNewResultImpl(AddImageTransformMetaDataProducer.java:46) 
at com.facebook.imagepipeline.producers.AddImageTransformMetaDataProducer$AddImageTransformMetaDataConsumer.onNewResultImpl(AddImageTransformMetaDataProducer.java:30) 
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97) 
at com.facebook.imagepipeline.producers.MultiplexProducer$Multiplexer.onNextResult(MultiplexProducer.java:452) 
at com.facebook.imagepipeline.producers.MultiplexProducer$Multiplexer$ForwardingConsumer.onNewResultImpl(MultiplexProducer.java:513) 
at com.facebook.imagepipeline.producers.MultiplexProducer$Multiplexer$ForwardingConsumer.onNewResultImpl(MultiplexProducer.java:506) 
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97) 
at com.facebook.imagepipeline.producers.EncodedMemoryCacheProducer$EncodedMemoryCacheConsumer.onNewResultImpl(EncodedMemoryCacheProducer.java:166) 
at com.facebook.imagepipeline.producers.EncodedMemoryCacheProducer$EncodedMemoryCacheConsumer.onNewResultImpl(EncodedMemoryCacheProducer.java:111) 
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97) 
at com.facebook.imagepipeline.producers.DiskCacheWriteProducer$DiskCacheWriteConsumer.onNewResultImpl(DiskCacheWriteProducer.java:129) 
at com.facebook.imagepipeline.producers.DiskCacheWriteProducer$DiskCacheWriteConsumer.onNewResultImpl(DiskCacheWriteProducer.java:86) 
at com.facebook.imagepipeline.producers.BaseConsumer.onNewResult(BaseConsumer.java:97) 
at com.facebook.imagepipeline.producers.NetworkFetchProducer.notifyConsumer(NetworkFetchProducer.java:179) 
at com.facebook.imagepipeline.producers.NetworkFetchProducer.handleFinalResult(NetworkFetchProducer.java:160) 
at com.facebook.imagepipeline.producers.NetworkFetchProducer.onResponse(NetworkFetchProducer.java:112) 
at com.facebook.imagepipeline.producers.NetworkFetchProducer$1.onResponse(NetworkFetchProducer.java:73) 
at com.icbc.im.utils.imagecontroller.ssl.OkHttpNetworkFetcher$2.onResponse(OkHttpNetworkFetcher.java:103) 
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) 
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
at java.lang.Thread.run(Thread.java:920) 
2023-12-21 17:12:19.563 7166-7638 unknown:Tr...ngConsumer com.icbc.im E Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory" on path: DexPathList[[zip file "/data/app/_6OphQ_pT6f7oEiH6HS67Q==/com.icbc.im-YoZt5pC24QV491t7qssStA==/base.apk"],nativeLibraryDirectories=[/data/app/_6OphQ_pT6f7oEiH6HS67Q==/com.icbc.im-YoZt5pC24QV491t7qssStA==/lib/arm, /data/app/~~_6OphQ_pT6f7oEiH6HS67Q==/com.icbc.im-YoZt5pC24QV491t7qssStA==/base.apk!/lib/armeabi, /system/lib, /system/system_ext/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 32 more

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

No branches or pull requests

1 participant