I installed Android Studio 1.2.1.1 and also created virtual device. I am trying to install one app (APK file) through command line but I could not find adb.exe
file on my machine. Please help where should I look for adb.exe
file on the machine.
The adb.exe file will be located at your Android SDK folder, inside platform-tools
...\android-sdk-path\platform-tools\adb.exe
The default location where Android SDK is installed is:
C:\Users\<insert username here>\AppData\Local\Android\sdk\
So adb will be located at:
C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe
To access it on a command line, open cmd.exe and type:
cd C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\
and then your normal command
adb <insert parameters here>
May be adb.exe file is missing form your computer. Try deleting platform-tools folder and re-download it from SDKManager.
Mac OS El Capitan 位于 /Users/[username]/depot_tools/src/chrome/browser/devtools/device
In my case, adb.exe got deleted after Android Studio update. I copied all the contents under platform-tools to another directory, deleted all the contents under platform-tools and installed platform-tools from Android SDK Manager.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.