【问题标题】:Building Workspace has encountered an issue构建工作区遇到问题
【发布时间】:2015-03-04 15:03:49
【问题描述】:

在 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 经常自动关闭。请帮助解决问题。

【问题讨论】:

    标签: android eclipse ide application-error


    【解决方案1】:

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

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

    • 您使用的是什么版本的 eclipse 和 android SDK?
    • 你的平台是什么?
    • 您有多少物理内存?
    • 您是否尝试过在运行 eclipse 时监控您的系统(例如,在 linux 中使用“top”),看看您是否耗尽了内存或任何其他资源?
    • 您是否安装了任何非标准/非常规插件?如果是,您是否尝试过移除它们?
    • 您的工作区中是否有大量项目/文件?
    • 您显示的错误都是与 android 相关的。您是否尝试过运行同一个 eclipse 但没有 android 插件的副本?您是否尝试过切换工作区?
    • 您是否使用任何特殊的 vmargs 运行 eclipse? (另见this article from eclipse wiki on memory arguments
    • 就 Android 而言,这是否发生在特别是使用模拟器或实体手机执行某些操作时?

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

    【讨论】:

      猜你喜欢
      • 2014-11-13
      • 2011-12-15
      • 2021-08-02
      • 2013-09-02
      • 2017-02-27
      • 1970-01-01
      • 2014-06-12
      • 2010-11-14
      • 1970-01-01
      相关资源
      最近更新 更多