Could not find method compile when building project

I tried to build my project with ‘eas build’ and got the following error:

  • what went wrong: [stderr] a problem occurred evaluating project ‘:react-native-file-log’. [stderr] > could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.defaultdependencyhandler. [stderr] * try:

I tried to change ‘compile’ to ‘implementation’ as i saw in some topics,but it’s still returned me this message. What can be wrong?

Hi @dor93

What are your dependencies and devDependencies from package.json?

Also, is this a bare project?