PhoneGap Build does not support gradle builds

  • 8
  • Problem
  • Updated 4 years ago
  • Acknowledged
As mentioned in the release notes here, PGB does not currently support gradle builds.

This causes a substantial issue when using plugins that use the gradleReference feature in their plugin.xml.

This means a fast growing number of Cordova/PhoneGap plugins do not work on PhoneGap Build.
Photo of James Treanor

James Treanor

  • 3 Posts
  • 0 Reply Likes
  • sad

Posted 5 years ago

  • 8
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
So make it work, then submit the change by making a pull request github.com Otherwise your post is just noise.
Photo of James Treanor

James Treanor

  • 3 Posts
  • 0 Reply Likes
Thanks for the reply Jesse.

Unfortunately, unless I am mistaken, PhoneGap Build (unlike PhoneGap cli) is not available on GitHub so I won't be able to make a PR.

It was not my intention to create noise here. Is there any other way I could help with this change?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@James,
as you can imagine, we get ALOT of noise on this forum. I appreciate your kinder disposition.
Jesse
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
Hi James,

We're at work on enabling gradle support. You should see an announcement by Brett or Ryan either on this site, or at http://phonegap.com/blog/phonegap-build/ when it's done.

-yiming
Photo of Steve Rad

Steve Rad

  • 13 Posts
  • 0 Reply Likes
Do you have any further news on this, Yiming? Or at ETA?
Photo of Benny Refaelov

Benny Refaelov

  • 65 Posts
  • 0 Reply Likes
any updates will be much appreciated
Photo of James Treanor

James Treanor

  • 3 Posts
  • 0 Reply Likes
Thanks great, thanks for the update :)
Photo of Steve Rad

Steve Rad

  • 13 Posts
  • 0 Reply Likes
Is there any news about this or an ETA available yet?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Yes. The news is to watch the blog.
Photo of Jeff Seals

Jeff Seals

  • 2 Posts
  • 0 Reply Likes
Any updates on this? I'm unable to build out on Android...

Error: Project contains at least one plugin that requires a system library. This is not supported with ANT. Please build using gradle.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Jeff,
perhaps you missed the response from the "Official Rep" which was recorded about a month ago. The update is watch the blog.
Here is the link to the blog:
http://phonegap.com/blog/phonegap-build/

Best of Luck
Jesse
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
If there is a need to use plugins on NPM that use gradle, we recommend specifying the version prior to that plugin switching to gradle.

-yiming
Photo of Jeff Seals

Jeff Seals

  • 2 Posts
  • 0 Reply Likes
Thanks. The plugin is cordova-plugin-tune and I am uncertain if there is a version prior to gradle.
Photo of Appu jain

Appu jain

  • 8 Posts
  • 0 Reply Likes
Hey help me out.. Its urgent.. I am stuck. Phonegap build give me an error :

/project/cordova/node_modules/q/q.js:126
throw e;
^

Error: Project contains at least one plugin that requires a system library. This is not supported with ANT. Please build using gradle.
at /project/cordova/lib/build.js:183:27
at _fulfilled (/project/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/project/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/project/cordova/node_modules/q/q.js:760:13)
at /project/cordova/node_modules/q/q.js:574:44
at flush (/project/cordova/node_modules/q/q.js:108:17)
at doNTCallback0 (node.js:417:9)
at process._tickCallback (node.js:346:13)
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, then build with gradle.
But first, replace all old, deprecated plugins from the pgb repo by the latest version from npm. Be aware that they are named differently.
See the Plugins section of the PGB Docs.
Photo of Appu jain

Appu jain

  • 8 Posts
  • 0 Reply Likes
I don't understand what you are talking about.. can you help me to out this...
Its urgent..
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
What exactly don't you understand? The gradle build engine or your deprecated plugins? In the latter case, did you read that Plugins section?
Photo of Appu jain

Appu jain

  • 8 Posts
  • 0 Reply Likes
deprecated plugins...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes