native_admob_flutter
native_admob_flutter copied to clipboard
Initializing failed
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)