当我尝试将 AdMob 添加到我的 Ionic 5 应用程序时出现以下错误......
“在“@ionic-native/admob-free”中找不到导出“AdMobFreeOriginal”
我的代码....
import { AdMobFreeOriginal, AdMobFreeBannerConfig } from '@ionic-native/admob-free';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
HttpClientModule, ],
providers: [
StatusBar,
SplashScreen,
AdMobFreeOriginal,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}