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 https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

(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

Unknown:
DeprecateUndefinedBuildWorkExecutor.java:37
at org.gradle.execution.DeprecateUndefinedBuildWorkExecutor.execute(DeprecateUndefinedBuildWorkExecutor.java:37)
•••`

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