React Native Gradle deprecated features

When I start a project in React Native I get:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See

(I started to get this suddenly and, with this, all old and new RN projects stopped opening. I tried to reinstall RN environment, but still got this. Now I think the problem is with gradle, because that is the only error message I get.)

So I looked for ran gradle help --scan to look for the deprecated stuff and got:
`Executing Gradle tasks as part of an undefined build has been deprecated.
This will fail with an error in Gradle 7.0.
1 usage

at org.gradle.execution.DeprecateUndefinedBuildWorkExecutor.execute(

Now I don’t know how to solve this, “undeprecate” it. Please help. I’ve been trying to solve this for almost a whole month and I just can’t use React Native and I need to deliver a project

1 Like