0

问题在于针对 Android ADT 修改的 Eclipse。我安装了 adt-bundle-windows-x86_64.zip(2013 年 2 月 24 日下载),并使其保持最新的 ADT 捆绑包和 Eclipse 更新。

我最近将 ADT (?) 更新到了 22 版。Android 编译失败(普通项目仍然有效),Google 先生告诉我从 ADT 管理器(?)顶部附近安装一些东西,我照做了。

现在,当我调用 eclipse 时,我得到一个包含以下内容的对话框:

An error has occurred. See the log file ...

日志文件的顶部是

!SESSION 2013-05-27 10:15:58.540 -----------------------------------------------
eclipse.buildId=v21.1.0-569685
java.version=1.7.0_15
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_AU
Framework arguments:  -product com.android.ide.eclipse.adt.package.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.product

!ENTRY org.eclipse.osgi 2 0 2013-05-27 10:15:59.799
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-05-27 10:15:59.799

底部是

java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.cdt.codan.core.application, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.cdt.managedbuilder.core.headlessbuild, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Eclipse 不使用注册表(我相信)所以这一定是 ADT。我担心 Eclipse 的卸载+重新安装不会正确清理注册表。

谁能建议如何从注册表中清除 Android 的 ADT 内容?

顺便说一句,我正在运行 Windows 7。

我已经运行了“eclipse -clean”。它给了我同样的对话框。

注意:我没有打开 Eclipse 窗口。我无法访问设置菜单、adt-manager 等。

4

2 回答 2

0

最后,我只是卸载了eclipse,然后重新安装。现在已经工作了几个星期了。

没用的东西...

我下载并运行了一个注册表清理器(不是编辑器)。它没有任何区别。

我尝试自行安装 eclipse 并添加 ADT 包,但无法按照说明进行操作。他们以为我知道某些捆绑软件在哪里下载,但我不知道。而且因为我有旧包,文件搜索没有帮助。

所以,我放弃并下载了 Android 的 ADT + eclipse 包。那行得通。

于 2013-06-12T01:13:30.677 回答
0

控制面板->高级系统设置->环境变量->

现在:

1-新建变量变量名=JAVA_HOME

variable value=C:\Program Files\Java\jdk1.7.0_01

2-编辑 Path 变量并将其添加到末尾

;%JAVA_HOME%\bin
于 2013-05-27T01:12:04.163 回答