android導出項目時遇到errors occurred during the build

    遇到errors occurred during the build這個問題好久了,沒有找到好的方法,一直都是用debug下的apk包再簽名,這樣就不能對apk包進行混淆和加密等操做了,諸多不便!java

    因此仍是要解決這個問題,百度是不行了,因而進到項目根目錄下進入.detadata文件夾下,查看eclipse的日誌文件.log。查看後得知,以下所示:
android

!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.

問題出在:eclipse

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

如此,選擇‘UmengLibs’項目,右鍵單擊;選擇「Properties」選項,在彈出菜單中選擇「Builders」項;刪除帶紅叉的builders,而後就能夠導出項目了。ide

相關文章
相關標籤/搜索