when i try to run a PhoneGap program in eclipse i find a error:
[2013-02-13 12:51:21 – DeviceMonitor]
Adb connection Error:An existing connection was forcibly closed by the remote host [2013- 02-13 12:51:22 – DeviceMonitor] Connection attempts: 1
OR
could not find a compatible AVD
whereas i have android 4.2 and respective emulator of API 17..
You need to restart your ADB Connection. Open Command prompt(for windows)
/sdk/platform-tools> adb -kill server
Then Start adb server again
/sdk/platform-tools> adb -start server
Now talking about could not find a compatible AVD
Check your app compatible android version and create a virtual device accordingly or
1.Right click on project in project explorer in eclipse .
2.Go to Run -> Run Configurations -> Target Tab
Then choose Radio button
Always prompt to pick device .
Apply settings and you will be asked next time to choose the device.