After I have migrated to AndroidX and rebuild my project then I got an error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find any version that matches androidx.legacy:legacy-support-v4:27.+.
Versions that do not match:
- 1.0.0
- 1.0.0-rc02
- 1.0.0-rc01
- 1.0.0-beta01
- 1.0.0-alpha3
- + 1 more
Required by:
project :app > project :react-native-fast-image
Dependency versions
Help please!
@nysamnang
@nysamnang
I had the same issue too, after a lot of searching I was able to get it to run by doing the following:
gradle.properties file in fast-images android foldergradle.properties add the following linesandroid.useAndroidX=false
android.enableJetifier=false
In my case I had to do this to several libraries I'm using. Hope this helps!
@granttj01 Thanks for the clarification.
@wstuckmeyer Thanks for awesome hack.
I decided roll back to Android Support Libraries instead of AndroidX, now everything is ok.
Hope this lib support AndroidX soon :)
[email protected] supports AndroidX without modifications.
Most helpful comment
@nysamnang
I had the same issue too, after a lot of searching I was able to get it to run by doing the following:
gradle.propertiesfile in fast-images android foldergradle.propertiesadd the following linesIn my case I had to do this to several libraries I'm using. Hope this helps!