react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

RNAdMobRewardedVideoAdModule is not abstract and does not override abstract method onRewardedVideoCompleted() in RewardedVideoAdListener

Open Buwaneka-Sumanasekara opened this issue 8 years ago • 31 comments

../node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNAdMobRewardedVideoAdModule.java:25: error: RNAdMobRewardedVideoAdModule is not abstract and does not override abstract method onRewardedVideoCompleted() in RewardedVideoAdListener public class RNAdMobRewardedVideoAdModule extends ReactContextBaseJavaModule implements RewardedVideoAdListener { ^

Buwaneka-Sumanasekara avatar May 30 '18 09:05 Buwaneka-Sumanasekara

+1

ray-shawn avatar May 30 '18 10:05 ray-shawn

This has been fixed already in https://github.com/sbugert/react-native-admob/pull/273 . Are you using the latest version of this library?

koenpunt avatar May 30 '18 22:05 koenpunt

I am using 1.3.2 @koenpunt , actually we do not wanna update version due to certain reason, how to handle this issue.

Oh I see. // @Override Deprecated public void onRewardedVideoCompleted() { sendEvent(EVENT_VIDEO_COMPLETED, null); }

ray-shawn avatar May 31 '18 01:05 ray-shawn

I'm encountering this issue, installing directly from npm, following the installation instructions exactly. What can I do to fix this?

Here are my logs: $ react-native run-android

> Task :react-native-admob:compileDebugJavaWithJavac FAILED
/home/will/Documents/ReactNative/VideoToolkit/New/GIFit/node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNAdMobRewardedVideoAdModule.java:20: error: RNAdMobRewardedVideoAdModule is not abstract and does not override abstract method onRewardedVideoCompleted() in RewardedVideoAdListener
public class RNAdMobRewardedVideoAdModule extends ReactContextBaseJavaModule implements RewardedVideoAdListener {
       ^
1 error


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-admob:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

I should mention:

Ubuntu 18.10
react-native-cli: 2.0.1
react-native: 0.57.8

Thank you for all the hard work you've done, I really appreciate it <3.

wbrickner avatar Dec 18 '18 12:12 wbrickner

@wbrickner same issue here! have you fixed it?? Anyone please help

raikk avatar Dec 28 '18 17:12 raikk

same problem

zxxza11 avatar Dec 29 '18 17:12 zxxza11

same problem

Batuhan-Akkaya avatar Jan 05 '19 15:01 Batuhan-Akkaya

same problem

amnan181 avatar Jan 14 '19 07:01 amnan181

same problem

Anandks1993 avatar Jan 15 '19 09:01 Anandks1993

+1

SimonHudec avatar Feb 02 '19 15:02 SimonHudec

I'm having the same issue. RewardedVideoAdModule is not abstract and does not override abstract method onRewardedVideoCompleted() in RewardedVideoAdListener react-native v0.58.4, react-native-admob v1.3.2

sonicsmith avatar Feb 18 '19 07:02 sonicsmith

+1 exact same problem

jdgalani avatar Feb 19 '19 04:02 jdgalani

+1

ghost avatar Feb 25 '19 13:02 ghost

+1

breakerof avatar Mar 01 '19 11:03 breakerof

Hello , haivng the issue , please help me RewardedVideoAdModule is not abstract and does not override abstract method onRewardedVideoCompleted() in RewardedVideoAdListener react-native v0.58.6, react-native-admob v1.3.2

kinjal111 avatar Mar 02 '19 06:03 kinjal111

hi guys,

if you install the latest version (v2.0.0-beta5) than the bug is gone.

breakerof avatar Mar 02 '19 06:03 breakerof

ok thanks let me try then

On Saturday, 2 March, 2019, 12:16:49 pm IST, Arton Berisha <[email protected]> wrote:  

hi guys,

if you install the latest version (v2.0.0-beta5) than the bug is gone.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

kinjal111 avatar Mar 02 '19 06:03 kinjal111

I have tried v2.0.0-beta5 on react-native-cli: 2.0.1 / react-native: 0.58.6

But it makes "application has stopped"

ghost avatar Mar 02 '19 12:03 ghost

@kaiserleka have you looked at the emulator/device logs? maybe the application-id is wrong or missing?

breakerof avatar Mar 02 '19 12:03 breakerof

@kaiserleka . i was also getting that same issue. but my issue is fixed after i added below statement in android\app\build.gradle file dependencies { ...... compile 'com.google.android.gms:play-services-ads:15.0.0' implementation project(':react-native-admob') ... }

kinjal111 avatar Mar 02 '19 12:03 kinjal111