为了账号安全,请及时绑定邮箱和手机立即绑定

运行出错!! 卡了几天了

info Starting JS server...

info Launching emulator...

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.

warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.

info Installing the app...

> Task :app:installDebug FAILED


Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

Use '--warning-mode all' to show the individual deprecation warnings.

See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings

27 actionable tasks: 2 executed, 25 up-to-date


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:installDebug'.

> com.android.builder.testing.api.DeviceException: No connected devices!


* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


* Get more help at https://help.gradle.org


BUILD FAILED in 5s


error Failed to install the app. Make sure you have an Android emulator running or a device connected. Run CLI with --verbose flag for more details.

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


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:installDebug'.

> com.android.builder.testing.api.DeviceException: No connected devices!


* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


* Get more help at https://help.gradle.org


BUILD FAILED in 5s


    at checkExecSyncError (child_process.js:621:11)

    at execFileSync (child_process.js:639:15)

    at runOnAllDevices (E:\jinyu\android\AP\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)

    at processTicksAndRejections (internal/process/task_queues.js:93:5)



这是我运行 react-native run-android后的所有信息 什么模拟器也装了 Android studio也装了 Android sdk也装了 但是具体有没有配置对 就不知道了 求解


正在回答

1 回答

我是iOS出错,路由那块根本跑步起来

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
ReactNative入门与进阶
  • 参与学习       70565    人
  • 解答问题       166    个

React Native跨平台技术入门与进阶

进入课程

运行出错!! 卡了几天了

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信