小编Aka*_*ash的帖子

“此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。” -反应本机

当我尝试运行 react-native 应用程序时遇到此错误react-native run-android,我无法安装该应用程序。我正在尝试构建一个相机应用程序。我当前的 react-native 版本:0.62.0,React-cli 版本:2.0.1。

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

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve project :react-native-camera.
     Required by:
         project :app
      > Cannot choose between the following variants of …
Run Code Online (Sandbox Code Playgroud)

android gradle android-camera android-studio react-native

17
推荐指数
2
解决办法
4万
查看次数