react-native-fast-image: package com.facebook.react.views.imagehelper does not exist [FIX THIS QUICK]
REACT NATIVE FAST IMAGE DOESNT WORK AT ALL NOT EVEN GOD CAN MAKE IT WORK OMG FIX THIS!
Note: [2] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule, com.dylanvann.fastimage.FastImageOkHttpProgressGlideModule]
node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java:23: error:package com.facebook.react.views.imagehelper does not exist
import com.facebook.react.views.imagehelper.ImageSource;
^
node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageSource.java:10: error: package com.facebook.react.views.imagehelper does not exist
import com.facebook.react.views.imagehelper.ImageSource;
^
node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageSource.java:14: error: cannotfind symbol
public class FastImageSource extends ImageSource {
^
symbol: class ImageSource
node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewModule.java:12: error: package com.facebook.react.views.imagehelper does not exist
import com.facebook.react.views.imagehelper.ImageSource;
^
4 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-fast-image:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Ive done all of this manually and automatic with RN Link: https://github.com/DylanVann/react-native-fast-image/blob/master/docs/installation-manual.md
- Removing node_modules then reinstalling dependencies. (rm -rf node_modules && yarn)
- Clearing watchman’s watches. (watchman watch-del-all)
- Clearing React Native’s packager cache. (react-native start --reset-cache)
- Clearing React Native’s iOS build folder. (rm -rf ios/build)
Already cleared cache from everywhere, deleted node modules millions of times, this doenst work at all, it was a simple installation nothing too complex. PLEASE FIX THIS OMG
I cant run this on Android.
already downgraded version, nothing seems to work, the plugin is broken please fix it… dont tell people useless solutions like in the other issue from the same subject please OMG!
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 7
- Comments: 21
Can you clear cache and rebuild, try it.
I’m getting the follow error right after configure webview:
This seems to be the problem. But if I do comment those follow lines, react-native-webview will be the next lib with error.
https://github.com/DylanVann/react-native-fast-image/issues/238 https://github.com/DylanVann/react-native-fast-image/issues/279 https://github.com/DylanVann/react-native-fast-image/issues/480
My fix is to download
https://github.com/DylanVann/react-native-fast-image, then put theandroid/folder tonode_modules/react-native-fast-image/overwrite everything (basically you use the latestandroidnotios)@preto89 Yelling “FIX THIS QUICK” will not make things go faster. Please consider that people here use freely their spare time to help other people (that is including Dylann the author of this project), so just be nice please 😉 Anyway, did you tried the solutions from @jmxxii, @xstable or @bbturtle ? If it is working for you please tell us so the maintainer of this package can close this issue =D
Ok well I managed to fix mine. Turns out to be an SDK issue at least on my end. I was using targetSDKVersion 26 I switched it to 22. I synced and reset cache and it worked without a problem. Although I haven’t tried other versions. Hope this helps @ithustle Check your android/app/build.gradle for your sdk version.
please try add in Proguard If you use Proguard you will need to add these lines to android/app/proguard-rules.pro:
-keep public class com.dylanvann.fastimage.* {;} -keep public class com.dylanvann.fastimage.** {;}
It helps me https://github.com/DylanVann/react-native-fast-image/blob/master/docs/app-glide-module.md
@tusharmutreja, @chakravorty, kind of, this is what I had to do, followed by this
@rochapablo I am getting the same problem, did you find any solution?
I also tried to use this code in build.gradle , but no luck
`
configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == ‘com.android.support’) { if (!requested.name.startsWith(“multidex”)) { details.useVersion ‘26.1.0’ } } } }
// for disabling the version check com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
`
@jmxxii it helped. Thanks. You too @bbturtle 😉
hey that worked! I’m curious why that worked.