gpt4 book ai didi

apache-flex - 在项目上运行构建器 'Flex' 时出错

转载 作者:行者123 更新时间:2023-12-01 04:09:18 25 4
gpt4 key购买 nike

这真让我抓狂。在构建项目时,我收到以下错误

Errors occurred during the build.
Errors running builder 'Flex' on project 'my-services'.
java.lang.NullPointerException

这是 Eclipse 中错误日志中的最后一个错误
!ENTRY org.eclipse.core.resources 4 75 2011-09-07 16:07:04.391
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2011-09-07 16:07:04.391
!MESSAGE Errors running builder 'Flex' on project 'my-services'.
!STACK 0
java.lang.NullPointerException
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.calcBuildTotalWork(FlexProjectBuilder.java:148)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:160)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:157)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我尝试过清理项目、刷新项目、重新启动 Eclipse,甚至将其从我的工作区中删除并重新导入。我还是迷路了。

最佳答案

就我而言,我正在使用模块,并为所有模块创建了一个特殊的输出文件夹。我在日志中收到了这个:

!ENTRY org.eclipse.core.resources 4 75 2012-03-04 10:27:12.328
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2012-03-04 10:27:12.328
!MESSAGE Errors running builder 'Flex' on project 'myProject'.
!STACK 0
java.lang.RuntimeException: Object reference not set to an instance of an object.
我能够通过编辑 .project 文件来解决它 - 这看起来会导致如下错误:
...
<linkedResources>
<link>
<name>[source path] modules</name>
<type>2</type>
<locationURI>DOCUMENTS/modules</locationURI>
</link>
<link>
<name>bin-debug</name>
<type>2</type>
<locationURI>DOCUMENTS/modules</locationURI>
</link>
</linkedResources>
...
我能够通过编辑 .project 文件来解决它 - 这看起来会导致如下错误:
...
<linkedResources>
<link>
<name>bin-debug</name>
<type>2</type>
<locationURI>DOCUMENTS/modules</locationURI>
</link>
</linkedResources>
...
希望这可以帮助其他人解决这个烦人的错误。

关于apache-flex - 在项目上运行构建器 'Flex' 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7339986/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com