I started to write android app with eclipse IDE. But when I run the app I am taking emulator-5554 disconnected! Cancelling 'com.example.merhaba.Main activity launch'! error. What can I do?
The problem as I discovered lays in the fact the the project has no appropriate Virtual Device defined for it in the AVD manager.
So the recommended steps in eclipse are:
--- OR ---
This should work.
--- OR ---
This should also work.
-- OR --
try this.. go to DDMS perspective-->select Device-->go to Window-->Navigation-->Show view menu-->reset adb.. .
Enjoy your emulator once again!
This solved it for me:
1) Leave Eclipse open and the emulator also open even though Eclipse doesn't find it.
2) In command line type:
adb kill-server
Then when prompt comes back, type
adb start-server
3) After adb starts again, try to run your project again from Eclipse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With