Home  >  Article  >  Web Front-end  >  What to do if react+native+adb reports an error

What to do if react+native+adb reports an error

藏色散人
藏色散人Original
2022-12-30 11:49:312306browse

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.

What to do if react+native+adb reports an error

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn