The build failed when install http://phonegap-plugins.com/plugins/katzer/cordova-plugin-badge
Building a Cordova 4.1.2 application.
Plugin "org.apache.cordova.device" (0.2.13) installed.
Plugin "org.apache.cordova.file" (1.3.2) installed.
Plugin "org.apache.cordova.inappbrowser" (0.5.4) installed.
Plugin "org.apache.cordova.dialogs" (0.2.11) installed.
Plugin "org.apache.cordova.vibration" (0.3.12) installed.
Plugin "org.apache.cordova.geolocation" (0.3.11) installed.
Plugin "com.google.playservices" (19.0.0) installed.
Plugin "com.google.admobsdk" (6.12.2) installed.
Plugin "cordova-plugin-admob" (2.2.0) installed.
Plugin "org.apache.cordova.file-transfer" (0.4.8) installed.
Plugin "org.apache.cordova.camera" (0.3.4) installed.
Plugin "com.phonegap.plugins.PushPlugin" (2.4.0) installed.
Error: Plugin BadgePlugin cannot be added. The plugin contains Gradle scripts.
JOHN H. (Intel) wrote:
For security reasons, our build system does not support plugins that contain Gradle scripts.
then what is the solution from Intel if it turns out we need plugin badge?
The easiest thing to do would be to find another plugin that does the same thing without using gradle scripts. Or you could download the plugin, remove the dependencies on gradle scripts and import it as a local plugin.
Anu S. wrote:
I used the plugin https://github.com/katzer/cordova-plugin-badge.git and got this errorError: Plugin Badges cannot be added. The plugin contains Gradle scripts.
Is there any solution for this like editing the gradle?
This is the gradle file used by that plugin > https://github.com/katzer/cordova-plugin-badge/blob/master/src/android/badge.gradle < it will not work with our build system; and there is no easy way around that limitation, especially with that gradle file. If you must use that plugin then you need to build with Cordova CLI.
If you want to convert your XDK project to a CLI project, follow the steps here > https://software.intel.com/en-us/forums/intel-xdk/topic/685326#comment-1885369 < and make use of this script > https://github.com/xmnboy/xdk-to-cli < (I'm in the process of updating the script to make it easier to install and run, but that may be a few days before it is finished, in the meantime, it does work, just requires a bit of effort to run).