How do I execute an adb command in Android Studio?
This question already has an answer here:
$
isn't part of the command. Use adb shell monkey -p your.package.name -v 500
adb is the command you ran on your terminal. For example:
adb devices
shows you the connected devices.
adb shell
Starts a remote shell in the target emulator/device instance.
See https://developer.android.com/studio/command-line/adb.html for more info about adb.
链接地址: http://www.djcxy.com/p/94284.html