目前我在登录时遇到了问题。 我试过命令:' 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.
答案 0 :(得分:1)
ADB PATH中存在错误,使用" \" " /" ,你已经给出了
c:\Users\gr351\AppData\Local\Android\Sdk/platform-tools/adb
但它应该是
c:\Users\gr351\AppData\Local\Android**\Sdk\platform-tools\adb**