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

in some phone Error inflating class #320

Closed
lekenny opened this issue Jul 24, 2016 · 5 comments
Closed

in some phone Error inflating class #320

lekenny opened this issue Jul 24, 2016 · 5 comments

Comments

@lekenny
Copy link

lekenny commented Jul 24, 2016

I/dalvikvm: Could not find method pl.droidsonroids.gif.GifViewUtils.initImageView, referenced from method pl.droidsonroids.gif.GifImageView.<init>
W/dalvikvm: VFY: unable to resolve static method 64823: Lpl/droidsonroids/gif/GifViewUtils;.initImageView (Landroid/widget/ImageView;Landroid/util/AttributeSet;II)Lpl/droidsonroids/gif/GifViewUtils$InitResult;

android.view.InflateException: Binary XML file line #24: Error inflating class pl.droidsonroids.gif.GifImageView
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoClassDefFoundError: pl.droidsonroids.gif.GifViewUtils

@koral--
Copy link
Owner

koral-- commented Jul 24, 2016

Are you using multidex and/or proguard?

@lekenny
Copy link
Author

lekenny commented Jul 24, 2016

@koral-- I've set multiDexEnabled true

@lekenny
Copy link
Author

lekenny commented Jul 24, 2016

but in another phone it's ok

@koral--
Copy link
Owner

koral-- commented Jul 24, 2016

Multidex misconfiguration may be the cause. See this comment: https://github.com/koral--/android-gif-drawable/issues/224#issuecomment-154769230
Do you have complete configuration?
Android >= 5.0 has native multidex support while lower versions require multidex support library. This may be source of behavior differences.
What is the model and android version of affected device?

In general this kind of errors look like a packaging issue on app side. Class GifViewUtils is present in library sources (https://github.com/koral--/android-gif-drawable/blob/master/src/main/java/pl/droidsonroids/gif/GifViewUtils.java) and artifacts in maven repos.

@lekenny
Copy link
Author

lekenny commented Jul 25, 2016

thanks

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

2 participants