error: cannot find symbol method setInAppPurchaseListener(AdMobAdsAppPurchaseListener)
error: cannot find symbol method setInAppPurchaseListener(AdMobAdsAppPurchaseListener)
我使用 cordova 创建了一个混合 android 应用程序,在我添加 Google AdMob 插件之前它运行得非常好。
通过命令行添加 google AdMob 插件后,出现此错误:
Error:(626, 23) error: cannot find symbol method setInAppPurchaseListener(AdMobAdsAppPurchaseListener)
我尝试更新 SDK 但没有任何效果。
请注意,我在 android studio
中编译和 运行 cordova 应用程序
该方法已在 Admob 版本 11 (source) 中删除:
Removed the getInAppPurchaseListener() and setInAppPurchaseListener() methods from the AdView, InterstitialAd, and NativeExpressAdView classes. Also removed related in-app purchase classes.
因此无法找到它,因为您使用的 SDK 版本 >= 版本 11.0.0,删除了方法。
我使用 cordova 创建了一个混合 android 应用程序,在我添加 Google AdMob 插件之前它运行得非常好。 通过命令行添加 google AdMob 插件后,出现此错误:
Error:(626, 23) error: cannot find symbol method setInAppPurchaseListener(AdMobAdsAppPurchaseListener)
我尝试更新 SDK 但没有任何效果。
请注意,我在 android studio
中编译和 运行 cordova 应用程序该方法已在 Admob 版本 11 (source) 中删除:
Removed the getInAppPurchaseListener() and setInAppPurchaseListener() methods from the AdView, InterstitialAd, and NativeExpressAdView classes. Also removed related in-app purchase classes.
因此无法找到它,因为您使用的 SDK 版本 >= 版本 11.0.0,删除了方法。