Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when building locally in Cordova after adding cordova-plugin-admobpro

I have upgraded my Cordova CLI development environment to the latest versions. But still obtaining this error so I can't build my project:

The command:

cordova build android

The error message:

Error: Project contains at least one plugin that requires a system library. This is not supported with ANT. Palease build using gradle.

Anybody knows a solution? Thanks in advance.

like image 929
Javier Haro Avatar asked Dec 14 '25 03:12

Javier Haro


1 Answers

cordova-admob plugin author here.

As seen from your comment, you have problems with gradle. Maybe recreating the environment from scratch could help. Other thing you can try is to add the plugin at https://github.com/appfeel/phonegap-admob

cordova plugin add https://github.com/appfeel/phonegap-admob

This is a mirror from cordova-admob but just changing the dependency method (this uses ant which makes it compatible with Phonegap Build).

like image 137
Miquel Avatar answered Dec 16 '25 21:12

Miquel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!