[Android] Build failed: `Required by: project :app > project :react-native-clusterer`
I try to run on Android, following error message is displayed
BUILD FAILED in 45s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDevDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:mergeDevDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:devDebugRuntimeClasspath'.
> Could not find any matches for com.facebook.react:react-android:+ as no versions of com.facebook.react:react-android are available.
Searched in the following locations:
- file:/Users/xxx/xxx/node_modules/react-native/android/com/facebook/react/react-android/maven-metadata.xml
Required by:
project :app > project :react-native-clusterer
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 45s
looks like failed to resolve the dependency But, I checked your examle and it looks to me like no fix to build.gradle is needed.
react-native-clusterer: 1.3.0 react-native: 0.69.6
Downgrade the version from 1.3.0 -> 1.2.2 solved the issue 🙏
Hello @centerfield77 I downgrade the library but still I am getting this issue. any idea?
@taha200 oh, I see... I haven't been using this library lately, so I can't tackle this issue right away, but I'll reopen this issue to gather information for you
Thank you for reopen this issue, my RN version is 0.70.5 and library version is 1.3.0 after downgrade, I downgraded it to the 1.2.2 but still the issue exists.