0

我正在尝试运行我的 android 项目。我已经单独检查了这些文件,但它在任何文件中都没有显示错误。但仍然无法运行,它显示Your project contains error(s), please fix them before running your application

我已经在线检查并重建项目/清理项目,但它仍然向我显示错误。

这是错误日志。

eclipse.buildId=M20120208-0800
java.version=1.7.0_04
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_SG
Command-line arguments:  -os win32 -ws win32 -arch x86_64
Error
Sun Aug 05 23:01:23 SGT 2012
JavaBuilder handling ImageBuilderInternalException while building: NFCTest
org.eclipse.core.internal.resources.ResourceException: A resource exists with a
different case: '/NFCTest/bin/classes/com/example/NFCTest'.
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:308)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:286)
at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:30)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:95)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.createFolder(AbstractImageBuilder.java:469)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder$1.visit(AbstractImageBuilder.java:253)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:65)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:75)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.addAllSourceFiles(AbstractImageBuilder.java:218)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:51)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:254)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:178)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
4

2 回答 2

0

您正在混合64-bit32-bit。下载 64 位版本的 Eclipse 并使用 64 位版本的 Java 7。

于 2012-08-05T15:40:40.133 回答
0

请检查您是否在不同(在本例中为 src)文件夹中有相同的包。

于 2015-03-12T19:00:47.690 回答