5 Replies Latest reply on Jan 31, 2017 11:59 PM by VectorP

    Unable to create Android build and it's thrown an error of "Error - One of your plugins required the gradle android build tool to build". Please help me which plugin is required gradle.

    pvisanofid41663006

      Unable to create Android build and it's thrown an error of "Error - One of your plugins required the gradle android build tool to build". Please help me which plugin is required gradle.

        • 1. Re: Unable to create Android build and it's thrown an error of "Error - One of your plugins required the gradle android build tool to build". Please help me which plugin is required gradle.
          VectorP Level 4

          Then please post your config, otherwise nobody knows which plugins you are using.

          Also, perhaps your build log offers more information about the plugin.

          • 2. Re: Unable to create Android build and it's thrown an error of "Error - One of your plugins required the gradle android build tool to build". Please help me which plugin is required gradle.
            pvisanofid41663006 Level 1

            <?xml version="1.0" encoding="UTF-8" ?>

            <widget xmlns   = "http://www.w3.org/ns/widgets"

              xmlns:gap   = "http://phonegap.com/ns/1.0"

              xmlns:android = "http://schemas.android.com/apk/res/android"

              ios-CFBundleVersion = "1.0.0"

              id          = "com.sanofi.global.sanofiepv"

              versionCode = "1"

              version     = "1.0.0" >

              <!-- versionCode is optional and Android only -->

             

             

              <name>Sanofi-ePV</name>

              <description>

              Sanofi-ePV

              </description>

              <author href="https://val.sanofi-epv.com" email="krathore@foresightroup.com">

              FGI

              </author>

              <feature name="NetworkStatus">

              <param name="android-package" value="org.apache.cordova.networkinformation.NetworkManager" />

              </feature>

              <feature name="StatusBar">

              <param name="ios-package" value="CDVStatusBar" onload="true" />

              </feature>

             

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

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

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

              <preference name="StatusBarBackgroundColor" value="#000000" />

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

              <preference name="AndroidPersistentFileLocation" value="Internal" />

              <preference name="AndroidPersistentFileLocation" value="Compatibility" />

              <preference name="iosPersistentFileLocation" value="Library" />

              <preference name="iosPersistentFileLocation" value="Compatibility" />

              <preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle,root" />

              <preference name="AndroidExtraFilesystems" value="files,files-external,documents,sdcard,cache,cache-external,root" />

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

              <plugin name="cordova-plugin-ios-camera-permissions" spec="https://github.com/Cordobo/cordova-plugin-ios-camera-permissions.git" />

              <gap:plugin name="cordova-plugin-networkinterface" source="npm" />

              <gap:plugin name="cordova-sqlite-ext" source="npm" version="0.8.6" />

              <gap:plugin name="cordova-plugin-splashscreen" source="npm" />

              <gap:plugin name="cordova-plugin-statusbar" source="npm" />

              <gap:plugin name="cordova-plugin-file" source="npm" />

              <gap:plugin name="cordova-plugin-whitelist" source="npm" />

              <gap:plugin name="cordova-plugin-screen-orientation" source="npm" />

              <gap:plugin name="cordova-plugin-inappbrowser" source="npm" />

              <gap:plugin name="cordova-plugin-screensize" source="npm" />

              <gap:plugin name="cordova-plugin-file-transfer" source="npm" />

              <gap:plugin name="cordova-plugin-file-opener2" source="npm" />

              <gap:plugin name="cordova-plugin-network-information" source="npm" />

              <gap:plugin name="ionic-plugin-keyboard" source="npm" />

              <gap:plugin name="MFileChooser" spec="https://github.com/MaginSoft/MFileChooser.git" />

             

              <icon src="img/icon.png" />

              <platform name="android">

              <icon src="resources/icons/android/icon/drawable-ldpi-icon.png" width="36" height="36" />

              <icon src="resources/icons/android/icon/drawable-mdpi-icon.png" width="48" height="48" />

              <icon src="resources/icons/android/icon/drawable-hdpi-icon.png" width="72" height="72" />

              <icon src="resources/icons/android/icon/drawable-xhdpi-icon.png" width="96" height="96" />

              <icon src="resources/icons/android/icon/drawable-xxhdpi-icon.png" width="144" height="144" />

              <icon src="resources/icons/android/icon/drawable-xxxhdpi-icon.png" width="192" height="192" />

              </platform>

             

             

              <platform name="ios">

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              <icon src="resources/icons/ios/icon/icon-small@2x.png" width="58" height="58" />

              <icon src="resources/icons/ios/icon/icon-small@3x.png" width="87" height="87" />

              </platform>

             

             

              <access origin="*" />

              <allow-intent href="*" />

              <allow-navigation href="*" />

             

             

              <platform name="android">

              <splash src="resources/splash/android/splash-land-xhdpi.png" density="land-xhdpi" />

              <splash src="resources/splash/android/splash-port-xhdpi.png" density="port-xhdpi" />

              <splash src="resources/splash/android/splash-port-hdpi.png" density="port-hdpi" />

              <splash src="resources/splash/android/splash-port-ldpi.png" density="port-ldpi" />

              <splash src="resources/splash/android/splash-port-mdpi.png" density="port-mdpi" />

              </platform>

             

             

              <platform name="ios">

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

              <splash src="resources/splash/ios/Default~iphone.png" width="320" height="480" />

              <!--iPhone 5-->

              <splash src="resources/splash/ios/Default-568h@2x~iphone-5.png" width="640" height="1136" />

              <!--iPhone 6-->

              <splash src="resources/splash/ios/Default-Portrait~iphone-6.png" width="750" height="1334" />

              <!--iPhone 6 Plus-->

              <splash src="resources/splash/ios/Default-Portrait~iphone-6-plus.png" width="1080" height="1920" />

              <!--ipad mini-->

              <splash src="resources/splash/ios/Default-Landscape~ipad.png" width="1024" height="768" />

              <splash src="resources/splash/ios/Default-Portrait~ipad.png" width="768" height="1024" />

              <!--ipad mini 2-->

              <splash src="resources/splash/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048" />

              <splash src="resources/splash/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536" />

              </platform>

            </widget>

            • 4. Re: Unable to create Android build and it's thrown an error of "Error - One of your plugins required the gradle android build tool to build". Please help me which plugin is required gradle.
              VectorP Level 4

              Are you using Phonegap Build, or are you building locally?

              If the former, you can't use cordova-sqlite-ext! The plugin's docs mention alternatives.

               

              Unreated feedback:

              - you don't need feature elements, so you can remove these.

              - your android splashes won't show, because you specified compound qualifiers in a densty attribute. Use the qualifier attribute, instead.

              - you're missing many iOS splashes, both landscape and portrait.