question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3.0.0-1 AdMob.initialize throws error on Android

See original GitHub issue

After 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Temeteroncommented, Feb 17, 2021

It is working with below dependencies:

    "@capacitor-community/admob": "^3.0.0-1",
    "@capacitor/android": "^3.0.0-beta.2",
    "@capacitor/core": "^3.0.0-beta.2",
0reactions
rdlabocommented, Feb 17, 2021

Great!! This is util development version. Please be aware that we will make breaking changes in the future, including the API.

Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found