相关疑难解决方法(0)

由于 React Native 版本 0.71.0-rc.0 的发布,React Native Android 构建失败并出现不同的错误,过去几天没有对代码进行任何更改

注意:错误可能会有所不同,但如果您在过去两天没有对代码进行任何更改的情况下进行 Android 构建时遇到任何错误

我的错误 - 无法安装应用程序。错误:命令失败:./gradlew app:installDebug -PreactNativeDevServerPort=8081

error Failed to install the app. Make sure you have the Android development environment set up:

Error: Command failed: ./gradlew app:installDebug
-PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* Where: Build file '/Users/....../node_modules/react-native-month-year-picker/android/build.gradle' line: 115

* What went wrong: A problem occurred configuring project ':react-native-month-year-picker'.

> Could not resolve all files for configuration ':react-native-month-year-picker:implementation'.
   > Could not resolve com.facebook.react:react-native:+.
     Required by:
         project :react-native-month-year-picker
      > Cannot choose between the following variants of com.facebook.react:react-native:0.71.0-rc.0: …
Run Code Online (Sandbox Code Playgroud)

javascript android gradle android-debug react-native

50
推荐指数
2
解决办法
5万
查看次数