ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
498 stars 212 forks source link

Build failed with an exception. #227

Open llapps opened 6 years ago

llapps commented 6 years ago

Hi, i try to compile a project with only cordova-plugin-admob-free inside.

The error is Error: /project/gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. /project/src/name/ratson/cordova/admob/rewardvideo/RewardVideoListener.java:13: error: RewardVideoListener is not abstract and does not override abstract method onRewardedVideoCompleted() in RewardedVideoAdListener class RewardVideoListener implements RewardedVideoAdListener { ^ 1 error

FAILURE: Build failed with an exception.


it is on phonegap build with

one week ago i had no problem with this configuration.

regards, Oliver

llapps commented 6 years ago

this is the configuration

phonegap-version value=cli-6.5.0 and cordova-plugin-admob-free source=npm spec=0.9.0

no other plugin. only admob free

llapps commented 6 years ago

what can i do? I can´t use a newer version of admob-free because than i get in trouble with my version of push.

but the error comes, when i compile the app only with admob-free plugin an no other plugin.

chasebank commented 6 years ago

I'm getting the same thing. Haven't figured out a fix yet.

Penny13692018 commented 6 years ago

I have the same problem and try to fix it by a pull request

Penny13692018 commented 6 years ago

Oh I found that I cannot use versions newer than v 0.12.0 because I use PhoneGap Build, which has an older Android Cli. please fix the override problem-- that is add onRewardedVideoCompleted() method in 0.12.0 version.

merbin2012 commented 6 years ago

@Penny13692018 Why we can not use newer than v0.12.0? and where did you found this?

Penny13692018 commented 6 years ago

If you use Phonegap build, it is unable to use version newer than v 0.12.0 because it needs cordova android newer than 6.3.0. But it is not available on Phonegap build yet. Thus you will get message below when use newer versions... "Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0 Skipping 'cordova-admob-sdk' for android"

But in newer versions, problem mentioned by llapps is solved.