Home > Article > Web Front-end > What to do if react+native+adb reports an error
React native adb error solution: 1. Use adb link emulator under win10 and check the error message in powershell; 2. Directly find the location of "adb.exe"; 3. In " Just run the adb command in the directory where adb.exe" is located.
The operating environment of this tutorial: Windows 10 system, React Native version 0.67, Dell G3 computer.
What should I do if react native adb reports an error?
The solution for react-native to use adb to report errors under win10
If react-native runs on WIN10 and uses adb to link the simulator, an error will be reported directly in powershell,
The error probably means that the adb cmdlet function cannot be recognized.
I have been looking for a solution for a long time, directly find the location of adb.exe, and then run the adb command in the current directory Effective
I don’t know if you have a better solution...
Related knowledge expansion:
adb react-native debugging
Print log with time
adb (-d/-s + deviceid)logcat -v time *:S ReactNative:V ReactNativeJS:V //实体设备 adb (-e/-s + deviceid)logcat -v time *:S ReactNative:V ReactNativeJS:V //虚拟机
Command line control reload
adb -s 0123456789ABCDEF reverse tcp:8081 tcp:8081 adb -d shell input keyevent 82 //实体设备 adb -e shell input keyevent 82 //虚拟设备
Recommended learning: "react video tutorial"
The above is the detailed content of What to do if react+native+adb reports an error. For more information, please follow other related articles on the PHP Chinese website!