android - react-native log-android adb 调用失败

标签 android react-native

目前我在登录 React Native 时遇到问题。 我尝试了命令:'react-native log-android' 但显示错误 adb 调用失败。你的 PATH 中有 adb 吗? 我已经研究了答案,但仍然有一些链接没有找到任何解决方案。

这是完整的日志伙计们

Scanning folders for symlinks in C:\wamp\www\ProjectAwesome\node_modules (49ms)
Starting the logger (c:\Users\gr351\AppData\Local\Android\Sdk/platform-tools/adb logcat *:S ReactNative:V ReactNativeJS:V)...
adb invocation failed. Do you have adb in your PATH?
(node:7696) UnhandledPromiseRejectionWarning: undefined
(node:7696) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

最佳答案

ADB PATH 有错误,"\""/"的用法,你给了

c:\Users\gr351\AppData\Local\Android\Sdk/platform-tools/adb

但应该是

c:\Users\gr351\AppData\Local\Android**\Sdk\platform-tools\adb**

关于android - react-native log-android adb 调用失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48819553/

相关文章:

android - 何时使用 ListView 而不是 RecyclerView

android - 如何在android中的自定义Tab Widget中设置Tab分隔符

java - 当我尝试在 Android Studio 中构建项目时,如何修复此错误?

java - 在选定的 ListView 行中放置复选标记

Ubuntu 上的安卓模拟器

android - 必须先启动预览模式才能拍照

reactjs - 将完整的 React Web 应用程序移植到 React Native

javascript - 如何清除处于 redux 状态的数组以进行多选

javascript - react native : what is the way to add frame around the picker to make it look nice?

javascript - 将类切换到 .map() 函数中的特定项目