2 Replies Latest reply on Jul 15, 2017 7:49 PM by pierre-luc.champigny

    Problem with android splash screen

    pierre-luc.champigny

      I'm building my app on my computer and all splashscreens are fine. When I upload a zip of my project on phonegap build service, the splash screen files are missing on android build.

       

      Here's a snippet of my config.xml

       

       

       

      <platform name="android">

       

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

         <icon density="ldpi" src="res/screen/android/icon/drawable-ldpi-icon.png" />

         <icon density="mdpi" src="res/screen/android/icon/drawable-mdpi-icon.png" />

         <icon density="hdpi" src="res/screen/android/icon/drawable-hdpi-icon.png" />

         <icon density="xhdpi" src="res/screen/android/icon/drawable-xhdpi-icon.png" />

         <icon density="xxhdpi" src="res/screen/android/icon/drawable-xxhdpi-icon.png" />

         <icon density="xxxhdpi" src="res/screen/android/icon/drawable-xxxhdpi-icon.png" />

         <splash src="res/screen/splash.png" />

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

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

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

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

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

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

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

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

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

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

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

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

      </platform>

      ....

       

      <preference name="SplashScreen" value="screen" />

       

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

         <preference name="FadeSplashScreenDuration" value="300" />

         <preference name="SplashScreenDelay" value="3000" />

         <preference name="SplashScreenBackgroundColor" value="0x0072C5" />

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

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

       

      ...

       

       

      And here's my file structure in the zip file im uploading to build.phonegap.com

       

      config.xml

      /www (contains my app)

      /res

          /screen

              /android (contains all images as specified in xml)

              /ios

              /windows

              splash.png