一、基本步骤概览
  1、安装MyEclipse8.5 (集成了Eclipse 3.5.2)  2、安装和配置Android SDK 2.2 当配置到。
点击上图【OK】后,你会在【Browse Software】下面的Personal Sites中找到android,展开节点,右击Android DDMS,选择【Add to Profile...】时提示错。Problems occurred when invoking code from plug-in: "org.eclipse.jface".eclipse.buildId=unknown
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments:  -os win32 -ws win32 -arch x86
java.lang.NullPointerException
at com.genuitec.pulse2.common.ui.ImageServices.createScaled(Unknown Source)
at com.genuitec.pulse.client.common.collab.ui.tab.software.NormalBrowseSelectionSectionPart.refresh(Unknown Source)
at com.genuitec.pulse.client.contrib.ui.blueprint.BlueprintAwareSectionPart.refresh(Unknown Source)
at com.genuitec.pulse.client.common.collab.ui.tab.software.SoftwareTabFormPart.selectionChanged(Unknown Source)
at com.genuitec.pulse.client.contrib.ui.provisional.tablesection.TitledViewersScrolledComposite.fireSelectionChanged(Unknown Source)
at com.genuitec.pulse.client.contrib.ui.provisional.tablesection.TitledViewersScrolledComposite.handleSelectionChanged(Unknown Source)
at com.genuitec.pulse.client.contrib.ui.provisional.tablesection.TitledViewersScrolledComposite$1.selectionChanged(Unknown Source)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1160)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

解决方案 »

  1.   

    点击Android DDMS此项时提示:Android DDMS is already a part of personal software for MyEclipse 8.6但在:  点击菜单栏【Window 】-【Preferences 】看是,却没有。
      

  2.   

    是不是jar包导致的。可能是缺少什么jar包吧
      

  3.   

    你用的Eclipse是那个版本的。 我用的是 helios 版本。这个版本不用自己去下包,直接安装就可以了。而其它版本会缺少这包那包的。配制起来嘛烦,不好用。你到Eclipse官网找这个名字的Eclipse IDE for Java EE Developers,   Eclipse去下就可以了,这个版本不用你配制什么包。
      

  4.   

    还是从eclipse官网下载一个eclipse用来开发android吧,myeclipse适合于EE
      

  5.   

    刚又弄好了,但原因不明
    一定要在打开设置中心的时候连接上网络,myeclipse的官网被墙没有关系,但要让software的标签页左侧列表中可以看到“快速安装”这一栏,这是要联网以后才会出现的,下面有SVN1.4、SVN1.6、GAE等等选项,不过不用去管它们。
    这时候才能看到之前自己手动添加的本地插件的图标可以显示了,然后也不会出现空指针错误了。但是这以后每次打开设置中心的速度都会变得更慢,而且点击插件安装时,光是添加这个操作就会卡死数十秒,好在不影响实际使用