Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.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
react本机日志android adb调用失败_Android_React Native - Fatal编程技术网

react本机日志android adb调用失败

react本机日志android adb调用失败,android,react-native,Android,React Native,目前我在登录react native时遇到问题。 我尝试了命令:“react native log android”但显示错误 adb调用失败。您的道路上有adb吗? 我已经研究了答案,但仍然有一些链接没有找到任何解决方案 这是完整的日志 Scanning folders for symlinks in C:\wamp\www\ProjectAwesome\node_modules (49ms) Starting the logger (c:\Users\gr351\AppData\Local\

目前我在登录react native时遇到问题。 我尝试了命令:“react native log android”但显示错误 adb调用失败。您的道路上有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路径中存在错误,使用了“\”“/”,您已给出

c:\Users\gr351\AppData\Local\Android\Sdk/platform-tools/adb
但应该是这样

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

你好@lib4你能解释一下我是怎么做到的吗?你的意思是我应该改变我的系统变量路径还是什么?是的,在系统变量中你应该改变。只需在命令行中键入adb并按enter键,即可检查adb是否正确配置。如果路径正确,则将显示adb选项。否则它会显示“没有这样的文件或目录”,只是在我的系统变量中更正我的ADB路径,它确实有效!谢谢@lib4!:)