【发布时间】:2021-09-13 05:55:26
【问题描述】:
任务 :app:installDebug 失败 31 个可操作的任务:31 个已执行 注意:C:\Users\Bst 305\ReactNativeDsr\android\app\src\debug\java\com\reactnativedsr\ReactNativeFlipper.java 使用或覆盖了已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。
FAILURE:构建失败并出现异常。
- 出了什么问题: 任务“:app:installDebug”执行失败。
com.android.builder.testing.api.DeviceException:没有连接设备!
-
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
-
通过https://help.gradle.org获得更多帮助
在 13m 44s 内构建失败
错误 无法安装应用程序。确保您正在运行 Android 模拟器或已连接设备。 错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 注意:C:\Users\Bst 305\ReactNativeDsr\android\app\src\debug\java\com\reactnativedsr\ReactNativeFlipper.java 使用或覆盖了已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。
FAILURE:构建失败并出现异常。
- 出了什么问题: 任务“:app:installDebug”执行失败。
com.android.builder.testing.api.DeviceException:没有连接设备!
-
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
-
通过https://help.gradle.org获得更多帮助
在 13m 44s 内构建失败
at makeError (C:\Users\Bst 305\ReactNativeDsr\node_modules\execa\index.js:174:9)
at C:\Users\Bst 305\ReactNativeDsr\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\Users\Bst 305\ReactNativeDsr\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:106:5)
at async Command.handleAction (C:\Users\Bst 305\ReactNativeDsr\node_modules\@react-native-community\cli\build\index.js:186:9)
info 使用 --verbose 标志运行 CLI 以获取更多详细信息。
【问题讨论】:
标签: react-native android-studio