Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Build failed: Required by: project :app > project :react-native-clusterer #33

Open
centerfield77 opened this issue Apr 4, 2023 · 4 comments

Comments

@centerfield77
Copy link

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

@centerfield77 centerfield77 changed the title Build failed: Required by: project :app > project :react-native-clusterer [Android] Build failed: Required by: project :app > project :react-native-clusterer Apr 4, 2023
@centerfield77
Copy link
Author

Downgrade the version from 1.3.0 -> 1.2.2 solved the issue 🙏

@taha200
Copy link

taha200 commented Jul 5, 2024

Hello @centerfield77 I downgrade the library but still I am getting this issue. any idea?

@centerfield77
Copy link
Author

@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

@centerfield77 centerfield77 reopened this Jul 5, 2024
@taha200
Copy link

taha200 commented Jul 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants