M.r. Saadati M.r. Saadati - 1 year ago 72
Java Question

How to write adb commands in windows 7 command prompt

I have a big problem in the run of Android app in eclipse! When I finished developing my app, and right click on project>Run As>Android Application, I see a

[2013-03-04 15:36:25 - DeviceMonitor] Connection attempts: 1
[2013-03-04 15:36:28 - DeviceMonitor] Connection attempts: 2
[2013-03-04 15:36:25 - DeviceMonitor] Connection attempts: 3

in console window.

Then I opend my command-Prommpt (in Win 7 32-bit) and see


How I write adb commands in it? likes adb kill-server and etc.

Answer Source

First go to Android-sdk Path -> (like D:\RAJESH-ANDROID\android-sdk\platform-tools) and execute the your commands like adb-kill server

like below :

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\raj>cd D:\RAJESH-ANDROID\android-sdk\platform-tools


D:\RAJESH-ANDROID\android-sdk\platform-tools>adb kill-server

D:\RAJESH-ANDROID\android-sdk\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *