RNA dMobRewardedVideoAdModule.java:89: error: method does not override or implement a method from a supertype
"react-native-admob": "^2.0.0-beta.5",
Error:
node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNA dMobRewardedVideoAdModule.java:89: error: method does not override or implement a method from a supertype @Override ^ 1 error :react-native-admob:compileReleaseJavaWithJavac FAILED
I think, finding the module and code-part and delete the override declaration will solve your problem. Before any official move, this quick fix helps you.
As a temporary workaround, I found I needed to make this change to android/build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
+ classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
+ maven {url "https://maven.google.com"}
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
Go To node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNAdMobRewardedVideoAdModule.java At Line no: 89 Delete @Override only you can refer this link: https://react-native-solutions.blogspot.com/2018/07/how-to-create-react-native-app-with.html