花了2天时间。一直卡在eclipse更新adt上面,翻墙也翻了。一直提示错误。
更新了。换了好几个eclipse的版本。有些能更新adt。但是指定安卓adk又提示你版本不够。难道就没有一个整合的环境可以直接下么?

解决方案 »

  1.   

    jdk1.6 + Eclipse Java EE.. ADT 如果在线安装不了, 有安装包可以下载. 
      

  2.   

    adt安装包最新下的。ADT-20.0.3.zipAn error occurred while installing the items
    session context was:(profile=epp.package.mobile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.android.ide.eclipse.adt 20.0.3.v201208082019-427395, action=).
    Failed to prepare partial IU: [R]com.android.ide.eclipse.adt 20.0.3.v201208082019-427395.错误
      

  3.   

    adt20.0.3.zip要解压缩才能用。指定路径不行。一个hello word程序运行成这鸟样。[2012-10-27 16:34:26 - hello] Error in an XML file: aborting build.
    [2012-10-27 16:35:00 - hello] Error in an XML file: aborting build.
    [2012-10-27 16:35:34 - hello] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
    [2012-10-27 16:35:34 - hello] res\layout\activity_main.out.xml:0: Originally defined here.
    [2012-10-27 16:35:34 - hello] C:\Users\sun\workspace\hello\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
    [2012-10-27 16:36:14 - hello] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
    [2012-10-27 16:36:14 - hello] res\layout\activity_main.out.xml:0: Originally defined here.
    [2012-10-27 16:36:14 - hello] C:\Users\sun\workspace\hello\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
    [2012-10-27 16:36:18 - hello] Error in an XML file: aborting build.
    [2012-10-27 16:38:16 - hello] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
    [2012-10-27 16:38:16 - hello] res\layout\activity_main.out.xml:0: Originally defined here.
    [2012-10-27 16:38:16 - hello] C:\Users\sun\workspace\hello\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
    [2012-10-27 16:38:22 - hello] Error in an XML file: aborting build.
    [2012-10-27 16:38:35 - hello] Error in an XML file: aborting build.