我对 Android 和 Eclipse 环境都很陌生...无法运行我的第一个应用



我对Android应用程序开发和Eclipse环境非常陌生。我按照以下步骤在我的工作空间上运行我的第一个Android应用程序。

  1. 已安装 Eclipse 4.2(Juno) 版本。
  2. 已安装 JDK 7U7 64 位版本。
  3. 安装了用于日食的 ADT 插件。
  4. Eclipse-> 新的 Android 项目。
  5. 在不对代码进行任何更改的情况下,Just 运行了该项目。

以下是控制台消息,我收到:

12:03:49,155 INFO  [main] Main  - javax.xml.transform.TransformerFactory=null
12:03:49,157 INFO  [main] Main  - java.endorsed.dirs=C:Program FilesJavajre7libendorsed
12:03:49,162 INFO  [main] Main  - launchFile: C:Userschanduworkspace.metadata.pluginsorg.eclipse.wst.xsl.jaxp.launchinglaunchlaunch.xml
12:03:49,219 FATAL [main] Main  - No embedded stylesheet instruction for file: file:/C:/Users/chandu/workspace/My%20First%20App/res/layout/activity_main.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Users/chandu/workspace/My%20First%20App/res/layout/activity_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:/Users/chandu/workspace/My%20First%20App/res/layout/activity_main.xml
    at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
    ... 2 more

提前感谢您对此问题的任何帮助。

您似乎正在尝试运行activity_main.xml文件。如果"项目资源管理器"视图中的当前选择位于文件activity_main.xml上,则可能会发生这种情况。关闭文件的编辑器,在"项目资源管理器"中将当前所选内容设置为项目根节点,然后尝试运行该应用程序。

是的。它也从来没有对我有用。我将 NetBeans 7 IDE 与插件一起使用。

说明在这里:http://kenai.com/projects/nbandroid/pages/Install主页在这里:http://kenai.com/projects/nbandroid

祝你好运

相关内容

最新更新