-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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.NoClassDefFoundError: com.bumptech.glide.load.resource.drawable.GlideDrawable #196
Comments
the glide Version is 3.8.0。 but another component need glide Version is 4.5.0。can you update the glide Version ? |
the Image Gidle Verion |
I was working on updating the glide version but I've hit an issue with it and haven't had time to figure it out yet. See: bumptech/glide#2962 (comment) |
Is there a solution? |
There isn't a solution yet. I don't know how to resolve that issue and haven't had time to take another look yet. |
@DylanVann Wanted to start off by saying great repo! This works well for me on iOS, but starting my Android app will immediately throw this error. Would you happen to know any temporary workaround? |
@jnrepo If you're using Glide elsewhere in your app I'm not sure what will happen with this since yarn add github:DylanVann/react-native-fast-image#feat/glide-4 Let me know what happens. |
@DylanVann thanks for that quick response, will keep you updated |
On that branch I've just pushed a commit that will allow you to make this library depend on a specific glide version by using extra properties. Just add this to project.ext {
glideVersion = "4.6.1"
} In this case theoretically any |
@DylanVann thanks! I was actually able to fix my issue. I found the other module that was using
and that seemed to fix my issue. As with the
UPDATE: above error can also be fixed by omitting glide from my other module. |
I tried it out myself and noticed that error. I pushed a commit that fixes it. I'd be concerned that using that solution might break in some cases if |
@DylanVann cool, thank you so much! Tested the new version ( |
Well hopefully I can resolve that issue and get around to publishing it soon. For now you should be able to just point to the branch. Glad you've found a way to resolve this. |
Update on this: #201 Sort of an unfortunate situation with edit: Figured out a decent solution, merged that PR into master. Will do a beta release with Glide 4 soon. |
"react-native-fast-image": "^4.0.14" open react-native-fast-image android/build.gradle git clone https://github.com/DylanVann/react-native-fast-image.git |
+1 |
This will use the latest version on |
why you delete#201,then how can I resolve problem |
you latest version on master still have this problem |
it's merged into master. the latest version on master uses Glide 4 |
With your approach, iOS doesn't work, and you're missing the sdwebimag-related header files |
Even though I introduced sdwebimage myself, I still couldn't find the FLAnimatedImageView |
When trying to use
I guess I have to add glide dependencies manually for now. EDIT: I tried to add it again after I added it by default and it worked. I still have to include
|
I had the same problem after upgrading to |
java.lang.NoClassDefFoundError: com.bumptech.glide.load.resource.drawable.GlideDrawable
at libcore.reflect.InternalNames.getClass(InternalNames.java:55)
at java.lang.Class.getDexCacheType(Class.java:2551)
at java.lang.reflect.AbstractMethod.getParameterTypes(AbstractMethod.java:169)
at java.lang.reflect.Method.getParameterTypes(Method.java:193)
at java.lang.Class.getDeclaredMethods(Class.java:1812)
at com.facebook.react.uimanager.ViewManagersPropertyCache.extractPropSettersFromViewManagerClassDefinition(ViewManagersPropertyCache.java:426)
at com.facebook.react.uimanager.ViewManagersPropertyCache.getNativePropSettersForViewManagerClass(ViewManagersPropertyCache.java:320)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:122)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:116)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.findManagerSetter(ViewManagerPropertyUpdater.java:79)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.getNativeProps(ViewManagerPropertyUpdater.java:66)
at com.facebook.react.uimanager.ViewManager.getNativeProps(ViewManager.java:205)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstantsForViewManager(UIManagerModuleConstantsHelper.java:147)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstants(UIManagerModuleConstantsHelper.java:94)
at com.facebook.react.uimanager.UIManagerModule.createConstants(UIManagerModule.java:224)
at com.facebook.react.uimanager.UIManagerModule.(UIManagerModule.java:148)
at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:175)
at com.facebook.react.CoreModulesPackage.access$200(CoreModulesPackage.java:55)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:132)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:129)
at com.facebook.react.LazyReactPackage.createNativeModules(LazyReactPackage.java:81)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:106)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1171)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1141)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1083)
at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:920)
at java.lang.Thread.run(Thread.java:776)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.bumptech.glide.load.resource.drawable.GlideDrawable" on path: DexPathList[[zip file "/data/app/aolei.ydniu-1/base.apk"],nativeLibraryDirectories=[/data/app/aolei.ydniu-1/lib/arm, /data/app/aolei.ydniu-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at libcore.reflect.InternalNames.getClass(InternalNames.java:53)
at java.lang.Class.getDexCacheType(Class.java:2551)
at java.lang.reflect.AbstractMethod.getParameterTypes(AbstractMethod.java:169)
at java.lang.reflect.Method.getParameterTypes(Method.java:193)
at java.lang.Class.getDeclaredMethods(Class.java:1812)
at com.facebook.react.uimanager.ViewManagersPropertyCache.extractPropSettersFromViewManagerClassDefinition(ViewManagersPropertyCache.java:426)
at com.facebook.react.uimanager.ViewManagersPropertyCache.getNativePropSettersForViewManagerClass(ViewManagersPropertyCache.java:320)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:122)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.(ViewManagerPropertyUpdater.java:116)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.findManagerSetter(ViewManagerPropertyUpdater.java:79)
at com.facebook.react.uimanager.ViewManagerPropertyUpdater.getNativeProps(ViewManagerPropertyUpdater.java:66)
at com.facebook.react.uimanager.ViewManager.getNativeProps(ViewManager.java:205)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstantsForViewManager(UIManagerModuleConstantsHelper.java:147)
at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstants(UIManagerModuleConstantsHelper.java:94)
at com.facebook.react.uimanager.UIManagerModule.createConstants(UIManagerModule.java:224)
at com.facebook.react.uimanager.UIManagerModule.(UIManagerModule.java:148)
at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:175)
at com.facebook.react.CoreModulesPackage.access$200(CoreModulesPackage.java:55)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:132)
at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:129)
at com.facebook.react.LazyReactPackage.createNativeModules(LazyReactPackage.java:81)
at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:106)
at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1171)
at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1141)
at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1083)
at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:920)
at java.lang.Thread.run(Thread.java:776)
The text was updated successfully, but these errors were encountered: