Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Initializing failed #136

Open
wmla419 opened this issue Feb 24, 2022 · 0 comments
Open

Initializing failed #136

wmla419 opened this issue Feb 24, 2022 · 0 comments

Comments

@wmla419
Copy link

wmla419 commented Feb 24, 2022

My banner ads can be successfully displayed, but when I use this package to display native ads, it says my mobile sdk has not been initialized. I have already called await MobileAds.instance.initialize(); in the main method, and the banner ads can be loaded, how come my sdk has not been initialized?

The following is the error returned

E/flutter ( 5851): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:native_admob_flutter/src/utils.dart': Failed assertion: line 30 pos 5: 'MobileAds.isInitialized': The Mobile Ads SDK must be initialized before any ads can be loaded
package:native_admob_flutter/src/utils.dart:30
E/flutter ( 5851): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant