无法在eclipse中创建活动

时间:2014-07-06 12:29:58

标签: android eclipse

我刚刚下载了eclipse juno,当我创建一个活动时,它并没有出现在我的项目中。我已尝试按其他人的建议安装http://dl-ssl.google.com/android/eclipse/,但它出现了这个错误:

Your original request has been modified.

  "Android Traceview" is already installed, so an update will be performed instead.
  "Android Development Tools" is already installed, so an update will be performed instead.
  "Android DDMS" is already installed, so an update will be performed instead.
  "Android Hierarchy Viewer" is already installed, so an update will be performed instead.
  "Android Native Development Tools" is already installed, so an update will be performed instead.
  "Tracer for OpenGL ES" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
  Software being installed: Android Development Tools 23.0.2.1259578 (com.android.ide.eclipse.adt.feature.feature.group 23.0.2.1259578)
  Software currently installed: eclipse 23.0.0.1245622 (adtproduct 23.0.0.1245622)
  Only one of the following can be installed at once: 
    Android Development Toolkit 23.0.2.1259578 (com.android.ide.eclipse.adt 23.0.2.1259578)
    Android Development Toolkit 23.0.0.1245622 (com.android.ide.eclipse.adt 23.0.0.1245622)
  Cannot satisfy dependency:
    From: eclipse 23.0.0.1245622 (adtproduct 23.0.0.1245622)
    To: com.android.ide.eclipse.adt.feature.feature.group [23.0.0.1245622]
  Cannot satisfy dependency:
    From: Android Development Tools 23.0.0.1245622 (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
    To: com.android.ide.eclipse.adt [23.0.0.1245622]
  Cannot satisfy dependency:
    From: Android Development Tools 23.0.2.1259578 (com.android.ide.eclipse.adt.feature.feature.group 23.0.2.1259578)
    To: com.android.ide.eclipse.adt [23.0.2.1259578]

2 个答案:

答案 0 :(得分:3)

这是Google提供的最新捆绑包的错误。请参阅http://code.google.com/p/android/issues/detail?id=72912

  • 无法更新您可能已下载的现有ADT捆绑包。
  • 您可以选择以下两个选项之一:

    1. 从eclipse.org安装eclipse并指向更新站点安装ADT:https://dl-ssl.google.com/android/eclipse

    2. 从此处下载捆绑包:

  

linux 64 bit vm:   http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

     

linux 32位vm:   http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip

     

MAC:   http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip

     

的Win32:   http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip

     

Win64的:   http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

从ADT软件包23.0.2开始,您应该能够更新到ADT的未来版本。

答案 1 :(得分:-1)

我遇到了同样的问题,能够以这种方式解决 -

  1. Eclipse - >帮助 - >关于Eclipse ---->安装细节
  2. 选择 - Android DDMS,ADT,Android层次结构查看器,Android原生开发工具,Android TraceView和Tracer for OpenGL ES软件包。所有必须是版本22.xx
  3. 卸载上面选择的所有插件。
  4. 重启Eclipse
  5. 从更新站点安装ADT - https://dl-ssl.google.com/android/eclipse/