当我尝试使用React native执行项目时,出现以下问题

时间:2019-09-28 19:35:16

标签: android react-native

我正确配置了所有环境变量,并且出现此错误

  

任务:app:processDebugResources失败

在此版本中使用了不推荐使用的Gradle功能,使其与Gradle 6.0不兼容。 使用“ --warning-mode all”来显示各个弃用警告。 参见https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings 82个可执行任务:已执行3个,最新79个

失败:构建失败,并出现异常。

  • 出了什么问题: 任务':app:processDebugResources'的执行失败。

      

    无法读取路径'C:\ Users \ Antonio \ Desktop \ Proyectos \ Personales \ meissaa-app-mad \ android \ app \ build \ Generated \ not_namespaced_r_class_sources \ debug \ processDebugResources \ r \ androidx \ appcompat'。

    >
  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。

  • https://help.gradle.org

  • 获得更多帮助

58秒内失败

错误无法安装该应用程序。确保已设置Android开发环境:https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment。使用--verbose标志运行CLI以获取更多详细信息。错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort = 8081

失败:构建失败,并出现异常。

  • 出了什么问题: 任务':app:processDebugResources'的执行失败。

      

    无法读取路径'C:\ Users \ Antonio \ Desktop \ Proyectos \ Personales \ meissaa-app-mad \ android \ app \ build \ Generated \ not_namespaced_r_class_sources \ debug \ processDebugResources \ r \ androidx \ appcompat'。

    >
  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。

  • https://help.gradle.org

  • 获得更多帮助

58秒内失败

at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at runOnAllDevices (C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at then.result (C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

0 个答案:

没有答案