React native 我刚刚使用choco安装react native,每次运行时都会出现此错误;npx react本机运行安卓系统“;关于cmd
此版本中使用了不推荐的Gradle功能,使其与Gradle 7.0不兼容。 使用“--warning mode all”显示单个弃用警告。 看 失败:生成失败,出现异常React native 我刚刚使用choco安装react native,每次运行时都会出现此错误;npx react本机运行安卓系统“;关于cmd,react-native,React Native,此版本中使用了不推荐的Gradle功能,使其与Gradle 7.0不兼容。 使用“--warning mode all”显示单个弃用警告。 看 失败:生成失败,出现异常 出了什么问题: 在项目中找不到任务“installDebug”:应用程序 尝试: 运行gradlew tasks以获取可用任务的列表。使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力 得到更多的帮助 生成在10秒内失败 at
- 出了什么问题: 在项目中找不到任务“installDebug”:应用程序
- 尝试: 运行gradlew tasks以获取可用任务的列表。使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力
- 得到更多的帮助
at makeError (C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\execa\index.js:174:9)
at C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\execa\index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runOnAllDevices (C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
at async Command.handleAction (C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)
安装应用程序失败时出错。确保已设置Android开发环境:。有关详细信息,请使用--verbose标志运行CLI。
错误:命令失败:gradlew.bat应用程序:installDebug-PreactNativeDevServerPort=8081
失败:生成失败,出现异常
- 出了什么问题: 在项目中找不到任务“installDebug”:应用程序
- Try:运行gradlew任务以获取可用任务的列表。使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力
- 得到更多的帮助
at makeError (C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\execa\index.js:174:9)
at C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\execa\index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runOnAllDevices (C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
at async Command.handleAction (C:\Users\gusta\Desktop\lyftclone\lyft\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)