4 Replies Latest reply on Jan 17, 2017 3:47 AM by danielem18727002

    Android Build fails - it works with PhoneGap v6.4.0, it doesn't with Phonegap v6.3.1

    danielem18727002

      Hi,

      I am trying to make an Android build I am currently getting the following error:

      Screenshot_1.png

       

      I do not understand what's wrong, this is my config.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <widget id  = "biz.peopleplanner.PPMobileV3"
         xmlns  = "http://www.w3.org/ns/widgets"
         xmlns:gap  = "http://phonegap.com/ns/1.0"
         version  ="3.0.13"
         android-versionCode  ="300289"
         ios-CFBundleVersion  ="3000015">

        <name>PPMobile V3</name>

        <description>
         Electronic based rota and timesheet.

         </description>

        <author email="support@peopleplanner.biz" href="http://peopleplanner.biz">
         Access PeoplePlanner

      </author>

        <content src="index.html" />

        <preference name="AllowInlineMediaPlayback" value="false" />
        <preference name="BackupWebStorage" value="cloud" />
        <preference name="DisallowOverscroll" value="false" />
        <preference name="EnableViewportScale" value="false" />
        <preference name="KeyboardDisplayRequiresUserAction" value="true" />
        <preference name="MediaPlaybackRequiresUserAction" value="false" />
        <preference name="SuppressesIncrementalRendering" value="false" />
        <preference name="SuppressesLongPressGesture" value="false" />
        <preference name="Suppresses3DTouchGesture" value="false" />
        <preference name="GapBetweenPages" value="0" />
        <preference name="PageLength" value="0" />
        <preference name="PaginationBreakingMode" value="page" />
        <preference name="PaginationMode" value="unpaginated" />
        <preference name="StatusBarOverlaysWebView" value="true" />
        <preference name="SplashScreenDelay" value="5000" />
        <preference name="SplashScreen" value="screen" />
        <preference name="SplashMaintainAspectRatio" value="true" />
        <preference name="Orientation" value="default" />
        <preference name="target-device" value="universal" />
        <preference name="prerendered-icon" value="true" />
        <preference name="detect-data-types" value="true" />
        <preference name="exit-on-suspend" value="true" />
        <preference name="deployment-target" value="7.0" />
        <preference name="android-targetSdkVersion" value="23"/>
        <preference name="android-minSdkVersion" value="14"/>

        <plugin name="cordova-plugin-ios-camera-permissions" spec="1.0.4" />
        <plugin name="cordova-plugin-compat"  spec="1.1.0" />
        <plugin name="cordova-plugin-console"  spec="1.0.5" />
        <plugin name="cordova-plugin-crosswalk-webview"  spec="1.8.0" />
        <plugin name="cordova-plugin-geolocation"  spec="2.1.0" />
        <plugin name="cordova-plugin-google-analytics"  spec="0.8.1" />
        <plugin name="cordova-plugin-splashscreen"  spec="3.2.2" />
        <plugin name="cordova-plugin-whitelist"  spec="1.2.2" />
        <plugin name="phonegap-nfc"  spec="0.6.6" />
        <plugin name="phonegap-plugin-barcodescanner"  spec="4.1.0" />
        <plugin name="cordova.plugins.diagnostic"  spec="3.2.0" />

        <platform name="ios">
        <icon height="180" src="res/iOS/icons/icon-60@3x.png" width="180" />
        <icon height="60" src="res/iOS/icons/icon-60.png" width="60" />
        <icon height="120" src="res/iOS/icons/icon-60@2x.png" width="120" />
        <icon height="180" src="res/iOS/icon/icon-60@3x.png" width="180" />
        <icon height="76" src="res/iOS/icons/Icon-76.png" width="76" />
        <icon height="152" src="res/iOS/icons/icon-76@2x.png" width="152" />
        <icon height="40" src="res/iOS/icons/Icon-Small-40.png" width="40" />
        <icon height="80" src="res/iOS/icons/Icon-Small-40@2x.png" width="80" />
        <icon height="120" src="res/iOS/icons/Icon-Small-40@3x.png" width="120" />
        <icon height="57" src="res/iOS/icons/icon.png" width="57" />
        <icon height="114" src="res/iOS/icons/icon@2x.png" width="114" />
        <icon height="72" src="res/iOS/icons/icon-72.png" width="72" />
        <icon height="144" src="res/iOS/icons/icon-72@2x.png" width="144" />
        <icon height="29" src="res/iOS/icons/icon-small.png" width="29" />
        <icon height="58" src="res/iOS/icons/icon-small@2x.png" width="58" />
        <icon height="87" src="res/iOS/icons/icon-small@3x.png" width="87" />
        <icon height="50" src="res/iOS/icons/Icon-Small-50.png" width="50" />
        <icon height="100" src="res/iOS/icons/Icon-Small-50@2x.png" width="100" />
        <splash height="480" src="res/iOS/screens/screen-iphone-portrait.png" width="320" />
        <splash height="960" src="res/iOS/screens/screen-iphone-portrait-2x.png" width="640" />
        <splash height="1024" src="res/iOS/screens/screen-ipad-portrait.png" width="768" />
        <splash height="2048" src="res/iOS/screens/screen-ipad-portrait-2x.png" width="1536" />
        <splash height="768" src="res/iOS/screens/screen-ipad-landscape.png" width="1024" />
        <splash height="1536" src="res/iOS/screens/screen-ipad-landscape-2x.png" width="2048" />
        <splash height="1136" src="res/iOS/screens/screen-iphone-568h-2x.png" width="640" />
        <splash height="1334" src="res/iOS/screens/screen-iphone-portrait-667h.png" width="750" />
        <splash height="2208" src="res/iOS/screens/screen-iphone-portrait-736h.png" width="1242" />
        <splash height="1242" src="res/iOS/screens/screen-iphone-landscape-736h.png" width="2208" />
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <config-file platform="ios" target="*-Info.plist" parent="LSApplicationQueriesSchemes">
        <array>
        <string>comgooglemaps</string>
        </array>
        </config-file>
        <config-file platform="ios" target="*-Info.plist" parent="NSCameraUsageDescription">
        <array>
        <string>This app needs camera access</string>
        </array>
        </config-file>
        </platform>
        <platform name="android">
        <icon density="ldpi" src="res/Android/icons/drawable-ldpi/icon.png" />
        <icon density="mdpi" src="res/Android/icons/drawable-mdpi/icon.png" />
        <icon density="hdpi" src="res/Android/icons/drawable-hdpi/icon.png" />
        <icon density="xhdpi" src="res/Android/icons/drawable-xhdpi/icon.png" />
        <icon density="xxhdpi" src="res/Android/icons/drawable-xxhdpi/icon.png" />
        <icon density="xxxhdpi" src="res/Android/icons/drawable-xxxhdpi/icon.png" />
        <splash density="land-hdpi" src="res/Android/screens/screen-hdpi-landscape.png" />
        <splash density="land-ldpi" src="res/Android/screens/screen-ldpi-landscape.png" />
        <splash density="land-mdpi" src="res/Android/screens/screen-mdpi-landscape.png" />
        <splash density="land-xhdpi" src="res/Android/screens/screen-xhdpi-landscape.png" />
        <splash density="port-hdpi" src="res/Android/screens/screen-hdi-portrait.png" />
        <splash density="port-ldpi" src="res/Android/screens/screen-ldpi-portrait.png" />
        <splash density="port-mdpi" src="res/Android/screens/screen-mdpi-portrait.png" />
        <splash density="port-xhdpi" src="res/Android/screens/screen-xhdpi-portrait.png" />
        <allow-intent href="market:*" />
        </platform>
        <platform name="wp8">
        <icon height="170" width="170" src="res/WP8/Tiles/tile-170.png" />
        <icon height="99" width="99" src="res/WP8/Tiles/tile-99.png" />
        <icon height="71" width="71" src="res/WP8/Tiles/tile-71.png" />
        <icon height="360" width="360" src="res/WP8/Tiles/tile-360.png" />
        <icon height="210" width="210" src="res/WP8/Tiles/tile-210.png" />
        <icon height="150" width="150" src="res/WP8/Tiles/tile-150.png" />
        <icon height="360" width="744" src="res/WP8/Tiles/tile-744.png" />
        <icon height="210" width="434" src="res/WP8/Tiles/tile-434.png" />
        <icon height="150" width="310" src="res/WP8/Tiles/tile-310.png" />
        <icon height="106" width="106" src="res/WP8/Tiles/tile-106.png" />
        <icon height="62" width="62" src="res/WP8/Tiles/tile-62.png" />
        <icon height="44" width="44" src="res/WP8/Tiles/tile-44.png" />
        <icon height="120" width="120" src="res/WP8/Tiles/tile-120.png" />
        <icon height="70" width="70" src="res/WP8/Tiles/tile-70.png"  />
        <icon height="50" width="50" src="res/WP8/Tiles/tile-50.png" />
        <icon height="58" width="58" src="res/WP8/Tiles/tile-58.png" />
        <icon height="33" width="33" src="res/WP8/Tiles/tile-33.png" />
        <icon height="24" width="24" src="res/WP8/Tiles/tile-24.png" />
        <splash height="1920" width="1152" src="res/WP8/screens/wp8/SplashScreenPhone.scale-240.png" />
        <splash height="800" width="480" src="res/WP8/screens/wp8/SplashScreenPhone.scale-100.png" />
        <splash height="1120" width="672" src="res/WP8/screens/wp8/SplashScreenImage.screen-WVGA.png" />
        </platform>

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

        <allow-intent href="http://*/*" />
        <allow-intent href="https://*/*" />
        <allow-intent href="tel:*" />
        <allow-intent href="sms:*" />
        <allow-intent href="mailto:*" />
        <allow-intent href="geo:*" />
        <allow-intent href="comgooglemaps:*" />
        <allow-navigation href="comgooglemaps:*" />
      </widget>

       

       

      I have been looking around with no luck - I do nt run any command from shell or from XCode, what I do is zip a folder containing:

      - index.html

      - config.xml

      - res folder

      - my app folders

       

      then I upload the folder into phonegap build website and run the builds. What I am doing wrong?