0

在 Eclipse IDE 意外关闭后,在重新启动时它给出了以下错误日志:

 Errors occurred during the build.
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (2).

Eclipse 经常自动关闭。请帮助解决问题。

4

1 回答 1

2

(我还没有足够的声誉来发表评论,所以我会在这里回答。)

很难说,但我的猜测是,您很可能遇到了 OutOfMemory 错误或类似的错误/异常,这首先会导致您的 Eclipse 崩溃。几个问题来定位这个问题:

  • 您使用的是什么版本的 eclipse 和 android SDK?
  • 你的平台是什么?
  • 你有多少物理内存?
  • 您是否尝试过在运行 eclipse 时监控系统(例如,在 linux 中使用“top”),以查看是否内存或任何其他资源不足?
  • 您是否安装了任何非标准/非常规插件?如果是这样,您是否尝试过删除它们?
  • 您的工作区中是否有大量项目/文件?
  • 您显示的错误都是与android相关的。您是否尝试过运行同一个 eclipse 但没有 android 插件的副本?您是否尝试过切换工作区?
  • 您是否使用任何特殊的 vmargs 运行 eclipse?(另请参阅eclipse wiki 关于内存参数的这篇文章
  • Android 方面,在使用模拟器或实体手机做某事时会发生这种情况吗?

如果您可以编辑您的问题以包含此信息,那就太好了。

于 2015-01-07T02:17:17.053 回答