react native 进入 Android 目录 运行 gradlew --warning-mode all 结果如下:
Configure project :app
The BuildListener.buildStarted(Gradle) method has been deprecated. This is scheduled to be removed in Gradle 7.0. Consult the upgrading guide for further information: https://docs.gradle.org/6.2/userguide/upgrading_version_5.html#apis_buildlistener_buildstarted_an
d_gradle_buildstarted_have_been_deprecated
at build_zg5mqy232d0qqv1vzwvmmub3.run(D:\wamp64\www\muke-react-master\reactNativeProject\android\app\build.gradle:1)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Internal API constructor DefaultDomainObjectSet(Class) has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use ObjectFactory.domainObjectSet(Class) instead. See https://docs.gradle.org/6.2/userguide/custom_gradle_types.html#domainobjec
tset for more details.
at build_zg5mqy232d0qqv1vzwvmmub3.run(D:\wamp64\www\muke-react-master\reactNativeProject\android\app\build.gradle:1)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Task :help
Welcome to Gradle 6.2.
To run a build, run gradlew …
To see a list of available tasks, run gradlew tasks
To see a list of command-line options, run gradlew --help
To see more detail about a task, run gradlew help --task
For troubleshooting, visit https://help.gradle.org
BUILD SUCCESSFUL in 6s
1 actionable task: 1 executed
D:\wamp64\www\muke-react-master\reactNativeProject\android>gradlew --stacktrace
Task :help
Welcome to Gradle 6.2.
To run a build, run gradlew …
To see a list of available tasks, run gradlew tasks
To see a list of command-line options, run gradlew --help
To see more detail about a task, run gradlew help --task
For troubleshooting, visit https://help.gradle.org
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.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 8s
1 actionable task: 1 executed
如何解决这个gradle 不兼容问题?