Install adb, use adb to report errors and solutions

1.Install adb:

  •  brew cask install android-platform-tools

# Problem: The brew command fails and the error is reported as follows:

#Solution process:

brew update-reset

# Then download again:

# Continue to report errors:

# solution:

Use the command instead: brew install --cask android-platform-tools

# Verification: adb devices

The success is as follows. As long as adb does not show command not found, it will be successful.

#Use: adb logcat

adb logcat -c && adb logcat | grep log keyword

Guess you like

Origin blog.csdn.net/khadijiah/article/details/120157377