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

Could not find method compile() for arguments [com.facebook.react:react-native:0.12.+] #9

Open
MahmonirB opened this issue Apr 18, 2023 · 1 comment

Comments

@MahmonirB
Copy link

MahmonirB commented Apr 18, 2023

I've added react-native-locale-detector to react-native project, when I want to run roject, I face this issue and debug build failed:

yarn android
* What went wrong:
A problem occurred evaluating project ':react-native-locale-detector'.
> Could not find method compile() for arguments [com.facebook.react:react-native:0.12.+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
"react-i18next": "^12.2.0",
"react-native": "0.71.4",
"react-native-locale-detector": "^1.0.1",
@isogand
Copy link

isogand commented Apr 11, 2024

Navigate to the node_modules/react-native-locale-detector/android directory in your project.

Locate the build.gradle file.

dependencies {
implementation 'com.facebook.react:react-native:0.12.+'
}

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