如何解决将 com.google.android.gms:play-services-ads:19.4.0 更新到 20.1.0 仍然是 CustomEventBannerListener 期望的一些已弃用的方法
已将 com.google.android.gms:play-services-ads:19.4.0 更新为 20.1.0,但仍然没有删除一些已弃用的方法。参考https://developers.google.com/android/reference/com/google/android/gms/ads/mediation/customevent/CustomEventListener#onAdFailedToLoad(com.google.android.gms.ads.AdError)
error: <anonymous my_app_adapter_file> is not abstract and does not override abstract method onAdFailedToLoad(int) in CustomEventListener
customEventListener = new CustomEventBannerListener() {
//Deprecated still the CustomEventBannerListener expecting the int in onAdFailedToLoad
@Override
public void onAdFailedToLoad(int i) {
}
//latest
@Override
public void onAdFailedToLoad(AdError adError) {
return;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。