v3.0.0-1 AdMob.initialize throws error on Android
See original GitHub issueAfter installing latest version:
"@capacitor-community/admob": "^3.0.0-1"
i cannot use the plugin on Android. Tested on emulators, Pixel 3a (Android 10), Pixel 4 (Android 11) and on actual device Pixel 4a (Android 11)
Sample code:
import { AdMob, AdOptions, AdPosition, AdSize } from '@capacitor-community/admob';
...
const success = await AdMob.initialize({});
Which fails on the initialization with:
ERROR Error: Uncaught (in promise): Error: "AdMob" plugin is not implemented on android
Error: "AdMob" plugin is not implemented on android
Before the update i used the v1.2.6, with the appropriate imports, which worked as expected.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
MobileAds.Initialize() throws an exception · Issue #854 - GitHub
ADMOB -> Eror when initialize mobile ads: The type initializer for 'GoogleMobileAds. Api. MobileAds' threw an exception."
Read more >AdMob error, need some help... - Google Groups
When i update the Google Play Service dependency to - 'com.google.android.gms:play-services-ads:8.3.0' i got the same errors, i have google repository ...
Read more >Admob initialize causes an exception - Google Support
Admob initialize causes an exception. Hi. I get the following exception in my crashlytics dashboard for this line of code:.
Read more >Android - AdMob is not loading Ads by giving Error code 0
You have just created your ad unit so it's not initialised by google till now. So wait for at least 3 to 4...
Read more >Google AdMob Unity plugin not working on old Android versions
lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.initialization.OnInitializationCompleteListener" on path: DexPathList ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is working with below dependencies:
Great!! This is util development version. Please be aware that we will make breaking changes in the future, including the API.
Thanks.