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

gif error when use proguard #232

Closed
sangmingming opened this issue May 5, 2015 · 2 comments
Closed

gif error when use proguard #232

sangmingming opened this issue May 5, 2015 · 2 comments
Labels

Comments

@sangmingming
Copy link

get error when use proguard, and need load gif image, has this two type error

error message1:

samsung s5 android4.4.2

java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app-lib/com.xingin.xhs-1/libgifimage.so"
    at java.lang.Runtime.loadLibrary(Runtime.java:372)
    at java.lang.System.loadLibrary(System.java:514)
    at com.facebook.common.e.a$a.a(SoLoaderShim.java:34)
    at com.facebook.common.e.a.a(SoLoaderShim.java:56)
    at com.facebook.imagepipeline.gif.GifImage.g(GifImage.java:40)
    at com.facebook.imagepipeline.gif.GifImage.a(GifImage.java:62)
    at com.facebook.imagepipeline.producers.DecodeProducer$c.a(DecodeProducer.java:92)
    at com.facebook.imagepipeline.producers.l.run(DecodeProducer.java:202)
    at com.facebook.common.c.g.a(SerialDelegatingExecutor.java:24)
    at com.facebook.common.c.h.run(SerialDelegatingExecutor.java:47)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
    at java.lang.Thread.run(Thread.java:838)
error2:

meizu mx3 4.4.4

java.lang.NoSuchMethodError: no static or non-static method "Lcom/facebook/imagepipeline/gif/GifImage;.nativeCreateFromDirectByteBuffer(Ljava/nio/ByteBuffer;)Lcom/facebook/imagepipeline/gif/GifImage;"
    at java.lang.Runtime.nativeLoad(Native Method)
    at java.lang.Runtime.doLoad(Runtime.java:421)
    at java.lang.Runtime.loadLibrary(Runtime.java:362)
    at java.lang.System.loadLibrary(System.java:538)
    at com.facebook.common.g.a$a.a(SoLoaderShim.java:34)
    at com.facebook.common.g.a.a(SoLoaderShim.java:56)
    at com.facebook.imagepipeline.gif.GifImage.g(GifImage.java:40)
    at com.facebook.imagepipeline.gif.GifImage.a(GifImage.java:62)
    at com.facebook.imagepipeline.animated.a.c.a(AnimatedImageFactory.java:62)
    at com.facebook.imagepipeline.d.a.a(ImageDecoder.java:105)
    at com.facebook.imagepipeline.d.a.a(ImageDecoder.java:86)
    at com.facebook.imagepipeline.producers.DecodeProducer$c.a(DecodeProducer.java:231)
    at com.facebook.imagepipeline.producers.DecodeProducer$c.a(DecodeProducer.java:92)
    at com.facebook.imagepipeline.producers.l.run(DecodeProducer.java:202)
    at com.facebook.common.c.g.b(SerialDelegatingExecutor.java:76)
    at com.facebook.common.c.g.a(SerialDelegatingExecutor.java:24)
    at com.facebook.common.c.h.run(SerialDelegatingExecutor.java:47)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:841)
@tyronen tyronen added the build label May 5, 2015
@rockerhieu
Copy link

@sangmingming can you try the rules in #209?

@IanChilds
Copy link
Contributor

Yes please update your proguard config to match what rockerhieu has pointed to.

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

No branches or pull requests

4 participants