I am using Windows 7 and JDK 6.
I downloaded the package of Android SDK with Eclipse and followed the instructions to create the first Hello World application.
However, when I stand on MainActiviy.java and click on run I get the following error in the console:
Connection with adb was interrupted You may want to manually restart adb from the Devices view.
I tried many answers that I saw here: 1. Restart adb server 2. Make sure that the path is to the correct JDK 3. I went over preferences and didn't see any warning or error.
I can run the emulator- and it works fine. But it doesn't run the Hello World application.
What is wrong?
I had to go to DDMS view, and in view menu of the devices, to choose:
restart ADB.
This made everything work fine
Here are followed list of options what you can do to try to fix that issue:
adb kill-Server
, after adb start-Server
You can try to up performance to your Eclipse (mostly for Android):
open eclipse.ini
and set:
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m`
try to disable firewall
adb
through DDMSNew...
name: ADB
; value: <your android SDK path>\platform-tools
. after add to path %ADB%Expanding on Dejel's answer above with one change:
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