Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio 如何修复此错误&燃气轮机;任务:应用程序:installDebug失败_Android Studio_React Native - Fatal编程技术网

Android studio 如何修复此错误&燃气轮机;任务:应用程序:installDebug失败

Android studio 如何修复此错误&燃气轮机;任务:应用程序:installDebug失败,android-studio,react-native,Android Studio,React Native,我想运行React本机应用程序。是否按照官方文件中的描述一切正常 在创建AVD管理器时,我读到了一个可能的问题,在设置中,我只需要选择“使用主机GPU”。因为我有一个android studio版本的3.4 GPU设置,所以我没有找到,也没有找到并选择硬件GLE2.0,但错误仍然存在 info JS服务器已在运行。 安装应用程序的信息 任务:应用程序:installDebug失败 此版本中使用了不推荐的Gradle功能,使其与Gradle 6.0不兼容。 使用“--warning mode al

我想运行React本机应用程序。是否按照官方文件中的描述一切正常

在创建AVD管理器时,我读到了一个可能的问题,在设置中,我只需要选择“使用主机GPU”。因为我有一个android studio版本的3.4 GPU设置,所以我没有找到,也没有找到并选择硬件GLE2.0,但错误仍然存在

info JS服务器已在运行。 安装应用程序的信息

任务:应用程序:installDebug失败

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

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

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

    com.android.builder.testing.api.DeviceException:没有连接的设备

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

  • 得到更多的帮助

构建在7秒内失败

at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:15)
at runOnAllDevices (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:75:39)
at buildAndRun (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:137:41)
at /Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:103:12
at processTicksAndRejections (internal/process/task_queues.js:82:5)
at async Command.handleAction (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli/build/cliEntry.js:160:7)
安装应用程序失败时出错。确保运行Android仿真器或连接设备。有关详细信息,请使用--verbose标志运行CLI。 错误:命令失败:./gradlew应用程序:installDebug-PreactNativeDevServerPort=8081

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

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

    com.android.builder.testing.api.DeviceException:没有连接的设备

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

  • 得到更多的帮助

构建在7秒内失败

at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:15)
at runOnAllDevices (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:75:39)
at buildAndRun (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:137:41)
at /Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:103:12
at processTicksAndRejections (internal/process/task_queues.js:82:5)
at async Command.handleAction (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/@react-native-community/cli/build/cliEntry.js:160:7)

您是否启动了模拟器或连接了设备?运行adb device cmd并确保您的设备已连接或模拟器正在运行。然后让我知道不,我只是在终端写下了命令,我在android研究中创建了一个设备。如果你在运行adb deviceno时看到任何设备连接,我尝试通过移动设备连接,但它不可见。在手机上,开发者设置和hibernate已打开。您是否启动了模拟器或连接了设备?运行adb device cmd并确保您的设备已连接或模拟器正在运行。然后让我知道不,我只是在终端写下了命令,我在android研究中创建了一个设备。如果你在运行adb deviceno时看到任何设备连接,我尝试通过移动设备连接,但它不可见。在手机上,开发者设置和hibernate处于打开状态。