You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I installed the library as written in the readme file and linked it using react-native link react-native-admob. Also I followed these instructions to install mobile ads SDK. My react-native version is 6.1.0
I have implementation 'com.google.android.gms:play-services-ads:20.4.0' in my app/build.gradle dependencies section.
I initialized MobileAds by adding the following code into onCreate() method in my MainApplication.java:
MobileAds.initialize(this, new OnInitializationCompleteListener() {
@Override
public void onInitializationComplete(InitializationStatus initializationStatus) {
}
});
But I still get tons of cannot find symbol errors for google play ads libraries. For instance:
.../node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNAdMobRewardedVideoAdModule.java:167: error: cannot find symbol
adRequestBuilder.addTestDevice(testDevice);
or
.../node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNPublisherBannerViewManager.java:184: error: method does not override or implement a method from a supertype
@Override
Where am I doing wrong?
The text was updated successfully, but these errors were encountered:
Hello, I installed the library as written in the readme file and linked it using react-native link react-native-admob. Also I followed these instructions to install mobile ads SDK. My react-native version is 6.1.0
I have implementation 'com.google.android.gms:play-services-ads:20.4.0' in my app/build.gradle dependencies section.
I initialized MobileAds by adding the following code into onCreate() method in my MainApplication.java:
MobileAds.initialize(this, new OnInitializationCompleteListener() {
@Override
public void onInitializationComplete(InitializationStatus initializationStatus) {
}
});
But I still get tons of cannot find symbol errors for google play ads libraries. For instance:
.../node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNAdMobRewardedVideoAdModule.java:167: error: cannot find symbol
adRequestBuilder.addTestDevice(testDevice);
or
.../node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNPublisherBannerViewManager.java:184: error: method does not override or implement a method from a supertype
@Override
Hello, I installed the library as written in the readme file and linked it using
react-native link react-native-admob
. Also I followed these instructions to install mobile ads SDK. My react-native version is6.1.0
I have
implementation 'com.google.android.gms:play-services-ads:20.4.0'
in my app/build.gradle dependencies section.I initialized MobileAds by adding the following code into onCreate() method in my
MainApplication.java
:But I still get tons of
cannot find symbol
errors for google play ads libraries. For instance:or
Where am I doing wrong?
The text was updated successfully, but these errors were encountered: