0 Replies Latest reply on Jan 19, 2018 9:37 PM by sabar80419073

    Windows Build failed!

    sabar80419073 Level 1

      With following errors:

      Here is log file:

      Error: ENOENT: no such file or directory, scandir 'C:\project\res\screens\windows'

        at Error (native)

        at Object.fs.readdirSync (fs.js:808:18)

        at C:\project\cordova\lib\prepare.js:390:33

        at Array.forEach (native)

        at mapImageResources (C:\project\cordova\lib\prepare.js:378:12)

        at copyImages (C:\project\cordova\lib\prepare.js:442:23)

        at C:\project\cordova\lib\prepare.js:615:9

        at _fulfilled (C:\project\cordova\node_modules\q\q.js:834:54)

        at self.promiseDispatch.done (C:\project\cordova\node_modules\q\q.js:863:30)

        at Promise.promise.promiseDispatch (C:\project\cordova\node_modules\q\q.js:796:13)

       

      Here is config.xml :

      .

      .

      .

      .

      <preference name="phonegap-version" value="cli-7.1.0" />

      <!-- Windows 10 (default): -->

      <preference name="windows-appx-target" value="uap" />

      <!-- Windows 8.1: -->

      <preference name="windows-appx-target" value="8.1-win" />

      <!-- Windows Phone 8.1: -->

      <preference name="windows-appx-target" value="8.1-phone" />

      <preference name="windows-arch" value="anycpu" />

       

       

      <!-- SPLASH SCREENS-->

      <preference name="FadeSplashScreen" value="false"/>

      <preference name="SplashShowOnlyFirstTime" value="false"/>

      <preference name="SplashMaintainAspectRatio" value="false"/>

      <preference name="splashScreenDelay" value="4000" />

       

       

      <platform name="android">

          <!-- you can use any density that exists in the Android project -->

      <splash src="res/screens/android/screen-ldpi-portrait.png" density="ldpi" qualifier="port-ldpi"/>

      <splash src="res/screens/android/screen-mdpi-portrait.png" density="mdpi" qualifier="port-mdpi"/>

      <splash src="res/screens/android/screen-hdpi-portrait.png" density="hdpi" qualifier="port-hdpi"/>

      <splash src="res/screens/android/screen-xhdpi-portrait.png" density="xhdpi" qualifier="port-xhdpi"/>

      <splash src="res/screens/android/screen-xxhdpi-portrait.png" density="xxhdpi" qualifier="port-xxhdpi"/>

      <splash src="res/screens/android/screen-xxxhdpi-portrait.png" density="xxxhdpi" qualifier="port-xxxhdpi"/>

      <splash src="res/screens/android/screen-hdpi-land.png" density="hdpi" qualifier="land-hdpi"/>

      <splash src="res/screens/android/screen-ldpi-land.png" density="ldpi" qualifier="land-ldpi" />

      <splash src="res/screens/android/screen-mdpi-land.png" density="mdpi" qualifier="land-mdpi"/>

      <splash src="res/screens/android/screen-xhdpi-land.png" density="xhdpi" qualifier="land-xhdpi"/>

      <splash src="res/screens/android/screen-xxhdpi-land.png" density="xxhdpi" qualifier="land-xxhdpi"/>

      <splash src="res/screens/android/screen-xxxhdpi-land.png" density="xxxhdpi" qualifier="land-xxxhdpi"/>

      </platform>

      <platform name="ios">

          <!-- images are determined by width and height. The following are supported -->

          <splash src="res/screens/ios/screen-iphone-portrait.png" width="320" height="480"/>

          <splash src="res/screens/ios/screen-iphone-portrait-2x.png" width="640" height="960"/>

      <splash src="res/screens/ios/screen-iphone-land.png" width="480" height="320"/>

          <splash src="res/screens/ios/screen-iphone-land-2x.png" width="960" height="640"/>

          <splash src="res/screens/ios/screen-ipad-portrait.png" width="768" height="1024"/>

          <splash src="res/screens/ios/screen-ipad-portrait-2x.png" width="1536" height="2048"/>

          <splash src="res/screens/ios/screen-ipad-land.png" width="1024" height="768"/>

          <splash src="res/screens/ios/screen-ipad-land-2x.png" width="2048" height="1536"/>

          <splash src="res/screens/ios/screen-iphone-portrait-568h-2x.png" width="640" height="1136"/>

      <splash src="res/screens/ios/screen-iphone-land-568h-2x.png" width="1136" height="640"/>

          <splash src="res/screens/ios/screen-iphone-portrait-667h.png" width="750" height="1334"/>

      <splash src="res/screens/ios/screen-iphone-land-667h.png" width="1334" height="750"/>

          <splash src="res/screens/ios/screen-iphone-portrait-736h" width="1242" height="2208"/>

          <splash src="res/screens/ios/screen-iphone-land-736h.png" width="2208" height="1242"/>

      </platform>

       

       

       

       

      <platform name="windows">

          <splash src="res/screens/windows/splashscreen.png" target="SplashScreen"/>

          <splash src="res/screens/windows/splashscreenphone.png" target="SplashScreenPhone"/>

      </platform>

       

       

       

       

      <platform name="wp8">

          <!-- images are determined by width and height. The following are supported -->

          <splash src="res/screens/wp8/SplashScreenImage.png" width="768" height="1280"/>

      <splash src="res/screens/wp8/SplashScreenImageland.png" width="1280" height="768"/>

      </platform>

       

       

       

       

      <!-- ICONS -->

      <platform name="android">

                    <icon src="res/icons/android/icon-36-ldpi.png" density="ldpi"/>

                    <icon src="res/icons/android/icon-48-mdpi.png" density="mdpi"/>

                    <icon src="res/icons/android/icon-72-hdpi.png" density="hdpi"/>

                    <icon src="res/icons/android/icon-96-xhdpi.png" density="xhdpi"/>

        <icon src="res/icons/android/icon-144-xxhdpi.png" density="xxhdpi"/>

        <icon src="res/icons/android/icon-192-xxxhdpi.png" density="xxhdpi"/>

      </platform>

      <platform name="ios">

                    <!-- iOS 8.0+ -->

                    <!-- iPhone 6 Plus  -->

                    <icon src="res/icons/ios/icon-60-3x.png" width="180" height="180" />

                    <!-- iOS 7.0+ -->

                    <!-- iPhone / iPod Touch  -->

                    <icon src="res/icons/ios/icon-60.png" width="60" height="60" />

                    <icon src="res/icons/ios/icon-60-2x.png" width="120" height="120" />

                    <!-- iPad -->

                    <icon src="res/icons/ios/icon-76.png" width="76" height="76" />

                    <icon src="res/icons/ios/icon-76-2x.png" width="152" height="152" />

                    <!-- iOS 6.1 -->

                    <!-- Spotlight Icon -->

                    <icon src="res/icons/ios/icon-40.png" width="40" height="40" />

                    <icon src="res/icons/ios/icon-40-2x.png" width="80" height="80" />

                    <!-- iPhone / iPod Touch -->

                    <icon src="res/icons/ios/icon.png" width="57" height="57" />

                    <icon src="res/icons/ios/icon-2x.png" width="114" height="114" />

                    <!-- iPad -->

                    <icon src="res/icons/ios/icon-72.png" width="72" height="72" />

                    <icon src="res/icons/ios/icon-72-2x.png" width="144" height="144" />

                    <!-- iPhone Spotlight and Settings Icon -->

                    <icon src="res/icons/ios/icon-small.png" width="29" height="29" />

                    <icon src="res/icons/ios/icon-small2x.png" width="58" height="58" />

                    <!-- iPad Spotlight and Settings Icon -->

                    <icon src="res/icons/ios/icon-50.png" width="50" height="50" />

                    <icon src="res/icons/ios/icon-50-2x.png" width="100" height="100" />

           </platform>

      <platform name="wp8">

                    <icon src="res/icons/wp/ApplicationIcon.png" width="99" height="99" />

                    <!-- tile image -->

                    <icon src="res/icons/wp/Background.png" width="159" height="159" />

           </platform>

      <platform name="windows">

                    <icon src="res/icons/windows/logo.png" width="150" height="150" />

                    <icon src="res/icons/windows/smalllogo.png" width="30" height="30" />

                    <icon src="res/icons/windows/storelogo.png" width="50" height="50" />

           </platform>

      <!-- for iOS -->

      <feature name="SocialSharing">

        <param name="ios-package" value="SocialSharing" />

      </feature>

      <!-- for Android (you will find one in res/xml) -->

      <feature name="SocialSharing">

        <param name="android-package" value="nl.xservices.plugins.SocialSharing" />

      </feature>

      <feature name="Notification">

              <param name="android-package" value="org.apache.cordova.dialogs.Notification" />

      </feature>

      <!-- for Windows Phone -->

      <feature name="SocialSharing">

        <param name="wp-package" value="SocialSharing"/>

      </feature>

      <content src="index.html"/>

      <access origin="*"/>

      <access origin="*maps.googleapis.com" subdomain="true"/>

      <access origin="*.gstatic.com"/>

      <access origin="*.google.com"/>

      <access origin="*.googleapis.com" subdomains="true"/>

      <plugin name="cordova-plugin-whitelist"  source="npm" spec="1.3.3"/>

      <plugin name="cordova-plugin-device"  source="npm" spec="2.0.1"/>

      <plugin name="call-number"  source="npm" spec="0.0.2" />

      <plugin name="cordova-plugin-x-socialsharing"  source="npm" spec="5.2.1"/>

      <access origin="http://phonegap.com"  source="npm" subdomains="true" />

      <preference name="permissions" value="none"/>

      <plugin name="cordova-plugin-file-transfer"  source="npm" spec="1.7.0" />

      <plugin name="cordova-plugin-camera" source="npm"  spec="4.0.1"/>

      <plugin name="cordova-plugin-network-information"  source="npm" spec="2.0.1" />

      <plugin name="cordova-plugin-splashscreen"  source="npm" spec="5.0.1" />

      <plugin name="cordova-plugin-geolocation"  source="npm" spec="4.0.1" />

      <plugin name="cordova-plugin-statusbar"  source="npm" spec="2.4.1" />

      <plugin name="cordova-plugin-dialogs"  source="npm" spec="2.0.1" />

      <preference name="StatusBarOverlaysWebView" value="true" />

      <preference name="StatusBarStyle" value="lightcontent" />

      <allow-navigation href="*" />

      <allow-intent href="geo:*" />

      <allow-intent href="*" />

      <access origin="tel:*" launch-external="yes" />

      </widget>