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,然后就可以导出项目了。

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。