Software Archive
Read-only legacy content
17060 Discussions

Build Error - gradle script on Android Cordova 5.1.1 with Push Plugin

Fab_V_
New Contributor I
1,008 Views

I am facing a problem with the new repo of push plugin :
https://github.com/phonegap/phonegap-plugin-push

My app is cordova 5.1.1 and buld does not work with push plugin. fail due to gradle script.

How can i solve this please ?

Thanks

 

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • Building a Cordova 5.1.1 application.
  • The application name is "DriveNDate"
  • The package name is "com.eurofirstmultimedia.drivendate"
  • Plugin "cordova-plugin-statusbar" (1.0.0) installed.
  • Plugin "cordova-plugin-device" (1.0.1) installed.
  • Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
  • Plugin "intel.xdk.device" (1.2.5) installed.
  • Plugin "cordova-plugin-network-information" (1.0.1) installed.
  • Plugin "cordova-plugin-camera" (1.2.0) installed.
  • Plugin "cordova-plugin-file" (2.1.0) installed.
  • Plugin "cordova-plugin-file-transfer" (1.3.0) installed.
  • Plugin "cordova-plugin-datepicker" (0.8.6) installed.
  • Error: Plugin PushPlugin cannot be added. The plugin contains Gradle scripts.
  • Plugin "cordova-plugin-legacy-whitelist" (1.1.0) installed

 

0 Kudos
14 Replies
PaulF_IntelCorp
Employee
1,008 Views

I'm guessing that you are adding this plugin by specifying only the git repo address and nothing more. That means you are adding the "development" branch of that plugin, which is not a good thing to do. I recommend you specific a specific release tag or, simpler, use the Cordova registry technique and specify:

  • phonegap-plugin-push
  • 1.4.4

Assuming you wanted that latest version that's been published.

0 Kudos
Dmitriy_I_
New Contributor I
1,008 Views

Hello. I tried with 1.4.4dev and 1.4.4 release - failed. But with version 1.4.3 - The Build Was Successful!

Thanks.

0 Kudos
Manuel_Orlando_M_
1,008 Views

Hello, I have the same problem, but for me doesnt work with version 1.4.3, neither with 1.2.0, 1.3.0, 1.4.0, 1.4.1, 2.4.2. What can I do??

0 Kudos
Matheus_C_
Beginner
1,008 Views

I'm with this problem too
What Can I do?

 

Build Log:
  • Building a Cordova 4.1.2 application.
  • The application name is "PushXDK"
  • The package name is "xdk.intel.blank.ad.template"
  • Error: Plugin "PushPlugin" failed to install.
  • Plugin "org.apache.cordova.device" (0.2.13) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
0 Kudos
Matheus_C_
Beginner
1,008 Views

Hi friends

I I found the solution:
You need to use (https://github.com/phonegap/phonegap-plugin-push) new documentation. In my case I use the CLI version 5.1.1 and I use tag 1.4.3 and It works.

On this link You can see all the documentation.

 

Tks.

0 Kudos
Anusha_M_Intel1
Employee
1,008 Views

Yes when we last tested the 1.4.3 version of the push plugin was the most recent version that was successful. 

0 Kudos
Fab_V_
New Contributor I
1,008 Views

version 1.4.5 or 1.4.3 doest not work.

"plugin contain gradle script..."

build with cordova 5.1.1

0 Kudos
Fab_V_
New Contributor I
1,008 Views

In reply to Paul,
yes i added the plugin using GIT URL. this is why it does not work, except if i download version 1.2.3 and i import it as local plugin
So, i tried to import the 1.4.3 version using cordova registry and it worked !

  • Plugin "phonegap-plugin-push" (1.4.3) installed.
0 Kudos
Jannes_D_
Beginner
1,008 Views

Hey guys,

I'm using XDK 3491 in which phonegap-push-plugin is integrated also with versions 1.8.0 and 1.8.1, but with both versions I got the error reported above when I try to build. I'm Using cordova 5.4.1 

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

Paul and Anusha, did you tested these versions with the newest XDK?

It still works with version 1.4.3, but I want to use the newest version 1.8.1.

Thanks!

0 Kudos
Jannes_D_
Beginner
1,008 Views

Doesn't work with cordova 6.2.0 either.

0 Kudos
PaulF_IntelCorp
Employee
1,008 Views

Jannes -- versions 1.8.0 and 1.8.1 are not "integrated" with 3491, you have to add those versions manually. Please read the instructions on that featured plugin info page, it contains links to help you with the gradle script issue for that plugin.

Screen Shot 2016-08-10 at 8.46.34 AM.png

0 Kudos
Jannes_D_
Beginner
1,008 Views

Yes, I'm sorry, my fault. However, thank you for the quick reply!

I'm using version 1.4.3 now and waiting until gradle scripts are supported by your build servers.

0 Kudos
PaulF_IntelCorp
Employee
1,008 Views

James -- follow the FAQ instructions pointed to by that page, in this case you can use the most recent version of that plugin, you have to do a little bit of work to make some changes to the plugin and add the modified plugin as a "local plugin." The FAQ explains how.

0 Kudos
David_F_7
Beginner
1,008 Views

I have the same problem with barcode scanner plugin. I'm waiting for you. 

0 Kudos
Reply