Software Archive
Read-only legacy content
17061 Discussions

Error: Plugin BadgePlugin cannot be added.

Aahedi
Beginner
425 Views

The build failed when install http://phonegap-plugins.com/plugins/katzer/cordova-plugin-badge

Build Log:
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.

0 Kudos
5 Replies
John_H_Intel2
Employee
425 Views

For security reasons, our build system does not support plugins that contain Gradle scripts.

0 Kudos
Aahedi
Beginner
425 Views

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?

0 Kudos
John_H_Intel2
Employee
425 Views

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.

0 Kudos
Anu_S_
Beginner
425 Views

Hi,

I used the plugin  https://github.com/katzer/cordova-plugin-badge.git and got this error

  • Error: Plugin Badges cannot be added. The plugin contains Gradle scripts.

 

Is there any solution for this like editing the gradle?

0 Kudos
PaulF_IntelCorp
Employee
425 Views

Anu S. wrote:

I used the plugin  https://github.com/katzer/cordova-plugin-badge.git and got this error

Error: 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).

0 Kudos
Reply