ndnguyen
ndnguyen

Reputation: 140

Can not run application directly from eclipse?

As you know that in eclipse, we have 2 modes to choose for implementing application: debug mode, and run mode ( By clicking right on project and choose whether Debug As or Run As.)

As usual, when I choose Run as, I will reinstall application and run it without waiting for debug.

Suddenly, I can not use this kind of Run as. It like Debug mode ( although I choose Run As).

Can everyone tell me why and how to solve this problem?

p/s: I can not run my app independently without my Laptop now.

Thanks.

Upvotes: 0

Views: 60

Answers (2)

ndnguyen
ndnguyen

Reputation: 140

I have done this kind of solution. And it worked. Now i wanna share it.

What i do to fix it is: _ restart computer _ restart Eclipse _ disconnect device and make connection to eclipse again. _ kill adb server and restart it.

Upvotes: 0

Larry Schiefer
Larry Schiefer

Reputation: 15775

Try restarting the adb server on the command line:

adb kill-server
adb start-server

Eclipse will drop out its connection when you do kill-server and complain, but once you do start-server it should regain connectivity and be able to install/debug apps again.

Upvotes: 1

Related Questions