使用vscode中的react native tools运行并调试RN项目,但是在输出中却显示
[Error : 0101] Failed to run the application in Android: Error while executing command 'adb devices': Command failed: adb devices /bin/sh: adb: command not found
但是如果在终端中直接运行
react-native run-android
就可以运行,怀疑是在.bash_profile
和.zshrc
中配置了sdk,但是在vscode中不能使用,如何解决?
我是Mac系统
用Genymotion调试
解决方案点下面链接(ps:如果修改adb地址后还不能调试,重启vscode,或者重启电脑试试,本人按下面方法重启电脑后就行了)
https://stackoverflow.com/que...