mrousavy / react-native-blurhash

🖼️ A library to show colorful blurry placeholders while your content loads.
https://blurha.sh
MIT License
1.98k stars 70 forks source link

[BUG] Gradle 7.2 Android build error (RN 0.67.x) #149

Closed plrdev closed 2 years ago

plrdev commented 2 years ago

Bug

Building works with Gradle 6.9 that was in use with RN 0.66. With 0.67.x Gradle gets updated to 7.2 and Android build gives an error:

Build file '/Users/..../node_modules/react-native-blurhash/android/build.gradle' line: 24

* What went wrong:
A problem occurred evaluating project ':react-native-blurhash'.
> Plugin with id 'maven' not found.

Downgrading to Gradle 6.9 works, but not sure if something on RN 0.67.x relies on having 7.2 so would be nice that this library would work with it as well.

To Reproduce Steps to reproduce the behavior:

  1. Upgrade gradle-wrapper.properties gradle to 7.2
  2. Try to build for android
  3. See error

Expected behavior Build should work

Environment

"react": 17.0.2,
"react-native": 0.67.2,
"react-native-blurhash": 1.1.8
plrdev commented 2 years ago

It seems I had 1.1.5 from another branch and that was what didn't work, with 1.1.8 it is working 👍