Jason’s Ranting & Raving

Those who don’t read have no advantage over those who can’t.

Programming: Android emulator launch from eclipse

Posted by jaystile on September 27, 2010

There are some quirks launching the Android emulator from Eclipse. Work has started on my first Android application, and I kept running into ‘oddness’. I would see errors like this:

06:57:10,094 INFO  [main] Main  - launchFile: C:\workspace\android\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml
06:57:10,141 FATAL [main] Main  - No embedded stylesheet instruction for file: file:/C:/workspace/android/tmpproj/res/layout/main.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/workspace/android/tmpproj/res/layout/main.xml
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:225)
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186)
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:73)
Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/workspace/android/tmpproj/res/layout/main.xml
	at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
	... 2 more

Then a main.out.xml was getting created and it only happened sometimes. Those *.out files need to be removed. Confusion set in.

It turns out that I was clicking the ‘Run’ button while my main.xml file was selected. This makes eclipse try and do something other than launch my Android app. You need to actually select Run -> Run Configurations -> to get it to launch. 45 minutes of my life are gone!

Advertisements

One Response to “Programming: Android emulator launch from eclipse”

  1. Addoula said

    Thanks man 🙂

    I had the same problem

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: