【问题标题】:Error: Could not resolve <s:SWFLoader> to a component implementation错误:无法将 <s:SWFLoader> 解析为组件实现
【发布时间】:2012-01-09 11:16:08
【问题描述】:

我目前正在将当前由 Ant 构建的 Flex 项目转换为由 Maven 构建的项目。

我收到以下错误:

Could not resolve <s:SWFLoader> to a component implementation.

<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx">

似乎存在未解决的依赖关系。这些是我在 pom.xml 中的依赖项

    <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>flex-framework</artifactId>
        <version>4.5.0.19786</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>framework</artifactId>
        <version>4.5.0.19786</version>
        <type>swc</type>
    </dependency>

我必须在 pom.xml 文件中添加什么?

编辑:以下似乎不起作用,错误保持不变

<dependency>
    <groupId>com.adobe.flex.framework</groupId>
    <artifactId>spark</artifactId>
    <version>4.5.0.19786</version>
    <type>swc</type>
</dependency>

【问题讨论】:

    标签: apache-flex maven flexmojos


    【解决方案1】:

    尝试将mx:SWFLoadermx 命名空间一起使用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多