Sunday, 10 January 2010

Error when Running or Debugging an Android app from Eclipse with your Phone plugged in

As you can probably guess from this post, I've got my self a new phone. It's a T-Mobile G2, otherwise known as an HTC Hero.

I've been dicking around with the SDK and the Eclipse ADT plugin since I got it on Friday.

Today, I've started running into an error where Eclipse says an error occurred when I try to Run or Debug the application on my hardware (not an AVD).

Here is the full error from the Eclipse error log.

Sun Jan 10 18:27:37 GMT 2010
An internal error occurred during: "Launching Notepadv2".

at Source)
at Source)
at Source)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(
at org.eclipse.debug.internal.ui.DebugUIPlugin$

So, I started Googling and didn't really find much but I do seem to have sorted it.All I did was close Eclipse, unplug my phone from the USB lead. Reconnect my phone, and fire Eclipse up again.

That seems to do the trick.