1 Reply Latest reply on Aug 11, 2016 8:28 AM by hong19870225kh

    Could not resolve <s:ViewNavigatorApplication> to a component implementation

    betheflexcoder Level 2

      Hi,

       

      I am getting this error while building my Flex mobile project using ant build. It compiles preopely through flash Builder but gives the error : "Could not resolve <s:ViewNavigatorApplication> to a component implementation" when compiling with ant. I am using the config file airmobile-config.mxml . Here is my build script mcmlc task is below:

         

      <mxmlc file="${Src.dir}/${Application.name}.mxml" incremental="false" actionscript-file-encoding="UTF-8"

                   output="${Deploy.dir}/${Application.name}.swf" debug="${Debug.Boolean}" keep-generated-actionscript="false">

                   <load-config filename="${FLEX_HOME}/frameworks/airmobile-config.xml" />

                 

                   <compiler.source-path path-element="${Src.dir}" />

               

                <source-path path-element="${externalLib.dir}/libraries/CommonMobile/src"/>

               

                <library-path dir="${FLEX_HOME}/frameworks/libs" includes="*.swc" append="true"/>

                <library-path dir="${FLEX_HOME}/frameworks/libs/mobile" includes="mobilecomponents.swc" append="true"/>

                <library-path dir="${FLEX_HOME}/frameworks/libs/air" includes="*.swc" append="true"/>

                <library-path dir="${FLEX_HOME}/frameworks/libs/automation" includes="*.swc" append="true"/>

                <library-path dir="${FLEX_HOME}/frameworks/libs/mx" includes="*.swc" append="true"/>

                <library-path dir="${FLEX_HOME}/frameworks/libs/player" includes="*.swc" append="true"/>

               

               

                <library-path dir="${FLEX_HOME}/frameworks/locale/en_US" append="true"/>

                <library-path dir="${externalLib.dir}/libraries/external/robotlegs/1.4.0/bin" includes="robotlegs-framework-v1.4.0.swc" append="true"/>

                <library-path dir="${tomcat.dir}/webapps/MobilityServer/WEB-INF/flex/libs" includes="fds.swc" append="true"/>  

                <library-path dir="${tomcat.dir}/webapps/MobilityServer/WEB-INF/flex/libs/air" includes="airfds.swc" append="true"/>

                <library-path dir="${tomcat.dir}/webapps/MobilityServer/WEB-INF/flex/libs" includes="fiber.swc" append="true"/>

               

                <library-path dir="${externalLib.dir}/libraries/CustomMobilelib/bin" includes="CommonMobile.swc" append="true"/>         

               </mxmlc>