How do I execute an adb command in Android Studio? [duplicate]

$ 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.

Leave a Comment

tech