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

Unable to work with android-gif-drawable library in eclipse #191

Closed
yqpan1991 opened this issue Jul 22, 2015 · 2 comments
Closed

Unable to work with android-gif-drawable library in eclipse #191

yqpan1991 opened this issue Jul 22, 2015 · 2 comments

Comments

@yqpan1991
Copy link

Hello,author , I appricate your contribution for sharing this project
Here is my problem:
I did as your instruction :

  1. download aar file
  2. move classes.jar and so to eclipse libs folder
    when I run my project,the crash log as follows:
    07-22 19:45:11.643: E/AndroidRuntime(3893): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/com.test.demo.GifViewActivity}: android.view.InflateException: Binary XML file line Memory access exception #6: Error inflating class pl.droidsonroids.gif.GifImageView
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2279)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.ActivityThread.access$800(ActivityThread.java:142)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.os.Handler.dispatchMessage(Handler.java:102)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.os.Looper.loop(Looper.java:136)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.ActivityThread.main(ActivityThread.java:5241)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at java.lang.reflect.Method.invokeNative(Native Method)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at java.lang.reflect.Method.invoke(Method.java:515)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:818)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at dalvik.system.NativeStart.main(Native Method)
    07-22 19:45:11.643: E/AndroidRuntime(3893): Caused by: android.view.InflateException: Binary XML file line Memory access exception #6: Error inflating class pl.droidsonroids.gif.GifImageView
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:307)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.Activity.setContentView(Activity.java:1943)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at com.test.demo.GifViewActivity.onCreate(GifViewActivity.java:13)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.Activity.performCreate(Activity.java:5266)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1091)
    07-22 19:45:11.643: E/AndroidRuntime(3893): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2189)
    07-22 19:45:11.643: E/AndroidRuntime(3893): ... 11 more
    07-22 19:45:11.643: E/AndroidRuntime(3893): Caused by: java.lang.ClassNotFoundException: Didn't find class "pl.droidsonroids.gif.GifImageView" on path: DexPathList[[zip file "/data/app/com.test-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.test-1, /vendor/lib, /system/lib]]
    07-22 19:45:11.643: E/AndroidRuntime(3893): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
@koral--
Copy link
Owner

koral-- commented Jul 22, 2015

See #170

@koral-- koral-- closed this as completed Jul 22, 2015
@koral--
Copy link
Owner

koral-- commented Sep 8, 2015

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

No branches or pull requests

2 participants