React native 无法在EMULATOR上安装应用程序并启动它-React Native

React native 无法在EMULATOR上安装应用程序并启动它-React Native,react-native,react-native-android,React Native,React Native Android,请告诉我,我是reactNative的初学者,我尝试使用emulator和命令react native run android创建一个应用程序,这就是过去。请帮帮我 说明: 运行jetifier将库迁移到AndroidX的信息。您可以使用“-no jetifier”标志禁用它。 Jetifier找到了864个文件以转发jetify。使用4个工人。。。 正在启动JS服务器。。。 *守护进程未运行;现在从tcp:5037开始 *守护进程已成功启动 安装应用程序的信息。。。 启动Gradle守护程序时

请告诉我,我是reactNative的初学者,我尝试使用emulator和命令react native run android创建一个应用程序,这就是过去。请帮帮我

说明:

运行jetifier将库迁移到AndroidX的信息。您可以使用“-no jetifier”标志禁用它。 Jetifier找到了864个文件以转发jetify。使用4个工人。。。 正在启动JS服务器。。。 *守护进程未运行;现在从tcp:5037开始 *守护进程已成功启动 安装应用程序的信息。。。 启动Gradle守护程序时,无法重用1个不兼容和3个已停止的守护程序,请使用--status了解详细信息

任务:应用程序:transformClassesWithDexBuilderForDebug失败

此版本中使用了不推荐的Gradle功能,使其与Gradle 6.0不兼容。 使用“--warning mode all”显示单个弃用警告。 看见 17项可执行任务:8项已执行,9项最新

失败:生成失败,出现异常

  • 出了什么问题: 任务“:app:transformClassesWithDexBuilderForDebug”的执行失败

    无法读取路径“C:\Users\Rutherl BAC\Desktop\firstAppReact\android\app\build\intermediates\transforms\dexBuilder\debug\96\androidx\customview”

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

  • 得到更多的帮助

生成在1m 39秒内失败

at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:13)
at runOnAllDevices (C:\Users\ruthel BAC\Desktop\firstAppReact\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\Users\ruthel BAC\Desktop\firstAppReact\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
at then.result (C:\Users\ruthel BAC\Desktop\firstAppReact\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
安装应用程序失败时出错。确保已设置Android开发环境:。运行CLI 有关详细信息,请使用--verbose标志。 错误:命令失败:gradlew.bat应用程序:installDebug-PreactNativeDevServerPort=8081

失败:生成失败,出现异常

  • 出了什么问题: 任务“:app:transformClassesWithDexBuilderForDebug”的执行失败

    无法读取路径“C:\Users\Rutherl BAC\Desktop\firstAppReact\android\app\build\intermediates\transforms\dexBuilder\debug\96\androidx\customview”

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

  • 得到更多的帮助

生成在1m 39秒内失败

at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:13)
at runOnAllDevices (C:\Users\ruthel BAC\Desktop\firstAppReact\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\Users\ruthel BAC\Desktop\firstAppReact\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
at then.result (C:\Users\ruthel BAC\Desktop\firstAppReact\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
npm错误!代码失效循环 npm错误!错误1 npm错误!firstAppReact@0.0.1android:
react本机运行android
npm错误!退出状态1 npm错误! npm错误!失败firstAppReact@0.0.1android脚本。 npm错误!这可能不是npm的问题。上面可能还有其他日志输出

npm错误!此运行的完整日志可在以下位置找到: npm错误!C:\nodejs\npm-cache\u logs\2020-02-28T09\u 11\u 15\u 219Z-debug.log

  • 取消进程
  • 开放新码头
  • 在项目目录中,运行
  • cd-android
    -->
    \gradlew-clean
  • 完成后,
    cd..
    ,以便您可以直接转到项目文件
  • 运行
    react native start
  • 等待终端显示:
    查找依赖项,完成
  • 然后打开第二个终端,直接进入您的项目并运行
    react native run android
    (如果您使用的是Xcode,则运行ios) 我以前遇到过这个问题,所以试试这个。希望对你有帮助

可能的重复解决方案是在不运行android studio的情况下运行emulator,然后单击链接查看更多信息: