4 Replies Latest reply on Mar 7, 2013 6:28 AM by Gaius Coffey

    Could not resolve <s:ViewNavigatorApplication> to a component  implementation firstView="views.MyApp

    Mesal

      Hi,

      Am getting an error message Could not resolve <s:ViewNavigatorApplication> to a component  implementation firstView="views.MyAppHomeView"> Am trying the following mxml code.

       

      [exec] Loading configuration file C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\frameworks\air-config.xml     
      [exec] C:\MyApp\src\MyPBApp.mxml(7): Error: Could not resolve <s:ViewNavigatorApplication> to a component implementation.     
      [exec] firstView="views.MyAppHomeView"> 
      
      
      

      Here's my MyApp.mxml

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:ViewNavigatorApplication 
           xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
           firstView="views.MyAppHomeView">
           <fx:Style source="MyApp.css"/>
      
           <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
           </fx:Declarations>
      </s:ViewNavigatorApplication>

       

       

      and, here's the compile target of my build file

       

       <target name="compile">
               <!-- Run the AIR compiler to compile the application, including the PlayBook SDK AIR config -->
                         <exec executable="${playbook-sdk}/bin/amxmlc.bat" dir="${src.dir}">
                              <arg value="-load-config"/>
                              <arg value="${playbook-sdk}/frameworks/air-config.xml"/>
                          <arg value="-swf-version=10"/>
                              <arg value="-source-path+=${src.dir}"/>
                              <arg value="-compiler.library-path+=${playbook-sdk}/frameworks/libs"/>
                              <arg value="-compiler.library-path+=${lib.dir}"/>
                              <arg value="-compiler.debug=false"/>
                              <arg value="-output"/>
                              <arg value="${build-dir}/${app-swf}"/>
                              <arg value="${src.dir}/${app-name}.mxml"/>
                         </exec>
          </target>

       

      Any ideas why it cannot find that componenet?