android导出项目时遇到errors occurred during the build

遇到errors occurred during the build这个问题很久了,没有找到好的方法,一直都是用debug下的apk包再签名,这样就不能对apk包进行混淆和加密等操作了,诸多不便!

所以还是要解决这个问题,百度是不行了,于是进到项目根目录下进入.detadata文件夹下,查看eclipse的日志文件.log。查看后得知,如下所示:

!ENTRY com.android.ide.eclipse.adt 4 0 2015-05-04 09:58:57.962
!MESSAGE Export Wizard Error
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Errors occurred during the build.
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:620)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
	at org.eclipse.core.internal.resources.Project.build(Project.java:124)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1072)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1041)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1014)
	at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:99)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:305)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:234)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:219)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Contains: Errors running builder ‘Integrated External Tool Builder‘ on project ‘UmengLibs‘.
org.eclipse.core.runtime.CoreException: The builder launch configuration could not be found.
	at org.eclipse.core.externaltools.internal.ExternalToolsCore.newError(ExternalToolsCore.java:112)
	at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:76)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:328)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:403)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
	at org.eclipse.core.internal.resources.Project.build(Project.java:124)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1072)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1041)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1014)
	at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:99)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:305)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:234)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:219)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Contains: The builder launch configuration could not be found.
!SUBENTRY 1 org.eclipse.core.resources 4 566 2015-05-04 09:58:57.963
!MESSAGE Errors occurred during the build.
!SUBENTRY 2 org.eclipse.core.externaltools 4 75 2015-05-04 09:58:57.963
!MESSAGE Errors running builder ‘Integrated External Tool Builder‘ on project ‘UmengLibs‘.
!STACK 1
org.eclipse.core.runtime.CoreException: The builder launch configuration could not be found.
	at org.eclipse.core.externaltools.internal.ExternalToolsCore.newError(ExternalToolsCore.java:112)
	at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:76)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:328)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:403)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
	at org.eclipse.core.internal.resources.Project.build(Project.java:124)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1072)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1041)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.compileInReleaseMode(ProjectHelper.java:1014)
	at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:99)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:305)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:234)
	at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:219)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 3 org.eclipse.core.externaltools 4 0 2015-05-04 09:58:57.963
!MESSAGE The builder launch configuration could not be found.
!SUBENTRY 2 org.eclipse.core.externaltools 4 0 2015-05-04 09:58:57.963
!MESSAGE The builder launch configuration could not be found.

问题出在:

Contains: Errors running builder ‘Integrated External Tool Builder‘ on project ‘UmengLibs‘.

如此,选择‘UmengLibs’项目,右键单击;选择“Properties”选项,在弹出菜单中选择“Builders”项;删除带红叉的builders,然后就可以导出项目了。

时间: 2024-11-06 19:21:03

android导出项目时遇到errors occurred during the build的相关文章

【求解答】在eclipse中运行Android项目出现的问题 ——Launching MyFirstAPP' has encountered a program. Errors occurred during the build.

在运行Android项目的时候,右击项目名称,点击“Run as——Android application”后出现'Launching MyFirstAPP' has encountered a program. Errors occurred during the build. 求解决办法... [求解答]在eclipse中运行Android项目出现的问题 --Launching MyFirstAPP' has encountered a program. Errors occurred du

Android 创建项目时出现appcompat_v7 类包的问题

Android 创建项目时出现appcompat_v7 类包的问题 最近在进行Android开发时发现,更新ADT至22.6.0版本之后,创建新的安装项目,会出现appcompat_v7的引用库包,这到底是怎么回事呢?原来appcompat_v7是Google自己的一个兼容包,就是一个支持库,能让2.1以上全使用上4.0版本 的界面. 解决: 创建项目时,Minimum Required SDK这一项选择4.0版本以上. 注: Minimum Required SDK: 最低的SDK版本号. T

iOS上传IPA时提示导入此构建版本时出错-errors occurred in the app thinning process

今天上传IPA时报错,提示导入此构建版本时出错-errors occurred in the app thinning process,本以为是误操作开启了bitcode,检查后发现并不是,修改了build号重新上传依然不起作用,看到网上有人说删除三方库的plist文件可以解决,但是也有人表示删除plist文件会导致程序无法运行,所以想起了bitcode刚推出时同样碰到过这个问题,我的解决办法: 找出三方库的info.plist文件 删除Executable file的value

Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project '项目名'

问题描述: Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project 'myf'. java.lang.NullPointerException 问题分析: 此问题一般发生在Myeclipse 保存文件并自动部署时候.本人在写项目的时候,还没等部署好,关闭了了myeclipse 10,结果出现了这种情况.有一种产生此错误的原因是因为此项目不不是由myeclipse创建的,需要检查

打开Myeclipse时遇到了如下报错: ‘Building workspace’ has encountered a problem. Errors occurred during the build.

问题描述: 打开Myeclipse时遇到了如下报错: 'Building workspace' has encountered a problem. Errors occurred during the build. 解决方法: 1,关闭当前工作空间,即关闭MyEclipse. 2,找到工作空间如下路径的文件: "/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.

Myeclipse错误:Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project ...解决方法

一.为什么会发生这类错误 在编写项目的时候,还没等部署好,就关闭了了myeclipse 10,会出现这种问题. 当项目不是由myeclipse创建的,需要检查.project 文件,并且添加com.genuitec.eclipse.j2eedt.core.webnature时,会出现这种问题. 二.解决方案 关闭MyEclipse工作区间(就是你出错的那个工作区间). 删除工作空间下的“/.metadata/.plugins/org.eclipse.core.runtime/.settings/

Errors occurred during the build.解决方法(myeclipse的web工程)

今天写代码时,每保存一次就弹出一次Errors occurred during the build的错误,百度上的方法普遍是: 选择一个项目—-右键Properties—-Builders—-取消 “JavaScript Validator”  和 Mule 3 hot deployment 的勾就OK了 根据具体异常,勾选. 但是我用了这个方法还是一直弹出,于是我就想到我打开工程一直弹出的建立工程出错的提示.我的myeclipse里共有两个工程,我关掉了测试用的那个,不知道是不是这样导致它出错

Errors occurred during the build. Errors occurred during the build. Errors running builder 'JavaScript Validator' on XXX

选择项目--右键Properties--Builders--如果有则取消第一项“JavaScript Validator”的勾. http://blog.csdn.net/error_case/article/details/21369337 Errors occurred during the build. Errors occurred during the build. Errors running builder 'JavaScript Validator' on XXX

Errors occurred during the build. Errors running builder 'JavaScript Validator' on

eclipse又一次编译时候就会报错Errors occurred during the build. Errors running builder 'JavaScript Validator' on.如图: 解决的方法是:项目右键--properties---builders---javascript validator 如图: Errors occurred during the build. Errors running builder 'JavaScript Validator' on