修复android studio Firebase广告库在更新后显示错误
更新以下firebase ads库后修复android studio Firebase广告库在更新后显示错误,android,android-studio,interstitial,Android,Android Studio,Interstitial,更新以下firebase ads库后 implementation 'com.google.android.gms:play-services-ads:20.1.0' implementation 'com.google.firebase:firebase-ads:20.1.0' 我的android studio项目不断抛出这样的错误 cannot find symbol import com.google.android.gms.ads.InterstitialAd; Cannot
implementation 'com.google.android.gms:play-services-ads:20.1.0'
implementation 'com.google.firebase:firebase-ads:20.1.0'
我的android studio项目不断抛出这样的错误
cannot find symbol
import com.google.android.gms.ads.InterstitialAd;
Cannot resolve symbol 'InterstitialAd'
如果我恢复到原来的状态就好了
implementation 'com.google.android.gms:play-services-ads:19.3.0'
implementation 'com.google.firebase:firebase-ads:19.4.0'
但要在我的应用程序中实现一些功能和本地广告,我需要最新的firebase广告库。如何修复此问题?在版本20中,类已更改。用这个, com.google.android.gms.ads.interstival.interstitalad 查看更多详细信息