2017-09-08 93 views
1

當三星S6裝載圖像主動 我試圖保持proguard的,multidex我得到了這個問題,BLA BLA ... ...但沒有工作先進陣營本地壁畫崩潰

java.lang.NoClassDefFoundError: Failed resolution of: 
Lcom/facebook/imagepipeline/memory/PooledByteBuffer; 
at com.facebook.imagepipeline.animated.factory.AnimatedImageFactoryImpl.decodeGif(AnimatedImageFactoryImpl.java:84) 
at com.facebook.imagepipeline.decoder.DefaultImageDecoder.decodeGif(DefaultImageDecoder.java:145) 
at com.facebook.imagepipeline.decoder.DefaultImageDecoder$1.decode(DefaultImageDecoder.java:65) 
at com.facebook.imagepipeline.decoder.DefaultImageDecoder.decode(DefaultImageDecoder.java:126) 
at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode(DecodeProducer.java:240) 
at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200(DecodeProducer.java:112) 
at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:145) 
at com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:207) 
at com.facebook.imagepipeline.producers.JobScheduler.access$000(JobScheduler.java:27) 
at com.facebook.imagepipeline.producers.JobScheduler$1.run(JobScheduler.java:78) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43) 
at java.lang.Thread.run(Thread.java:762) 
+0

本指南以下配置[multidex](https://developer.android.com/studio/build/multidex.html#mdex-gradle) – ufxmeng

+0

仍與GIF圖像崩潰。正如我所說的,我已經配置了multidex OK –

回答

4

我 謝謝升級反應,原產於0.49.5我能夠通過更新我的壁畫依賴於​​解決它之後有這個問題:

compile 'com.facebook.fresco:animated-base-support:1.3.0' 
compile 'com.facebook.fresco:animated-gif:1.3.0' 

下面是相關的線程,但不是建議的唯一1.0.1 1.3.0似乎工作。

https://github.com/facebook/react-native/issues/13345

+0

與react-native 0.53合作:) – Annihil