DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.18k stars 1.5k forks source link

Execution failed for task ':react-native-fast-image:javaPreCompileDebug' #772

Open moahammadalt opened 3 years ago

moahammadalt commented 3 years ago

Trying to use the package in android but whenever i install the package and run the app i am getting this error:

* What went wrong:
Execution failed for task ':react-native-fast-image:javaPreCompileDebug'.
> Could not resolve all files for configuration ':react-native-fast-image:debugCompileClasspath'.
   > Could not find core-1.0.1.jar (androidx.core:core:1.0.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/core/core/1.0.1/core-1.0.1.jar

i am using these versions:

"react-native": "0.63.3",
"react-native-fast-image": "^8.3.4",

and here are my buildscripts configurations:

buildscript {
    ext {
        buildToolsVersion = "29.0.2"
        minSdkVersion = 16
        compileSdkVersion = 29
        targetSdkVersion = 29
        supportLibVersion = "29.0.0"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.3")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

I tried to clean the build and delete node_modules and yarn install, none of them worked!

Does this package really work for android or it's something i am missing?

robertjcolley commented 3 years ago

Is there any plans to address this? I'm not sure if Glide has been updated to fix this issue, but JCenter is shutting down which is causing this specific issue. Not sure if rnfi needs to update glide, or if glide need to be updated! JCenter shutdown

Andrew99xx commented 4 weeks ago

any update on this? I am seeing the same error in RN 0.69