![](/img/trans.png)
[英]Unhandled Exception: MissingPluginException(No implementation found for method X on channel plugins.flutter.io/Y)
[英]Unhandled Exception: MissingPluginException(No implementation found for method _init on channel plugins.flutter.io/google_mobile_ads) in_app_purchase
一旦我將 in_app_purchase 添加為依賴項,我就會收到Unhandled Exception: MissingPluginException(No implementation found for method _init on channel plugins.flutter.io/google_mobile_ads)
錯誤。 在將其添加為依賴項之前,google_mobile_ads 工作正常。 我的應用中同時需要 in_app_purchase 和 google_mobile_ads,我該如何處理?
PS請不要建議flutter clean和停止並再次運行應用程序,這些都不適合我。
我找到了答案。 我不知道 google_mobile_ads 如何與此相關聯,但是出現此錯誤是因為我將in_app_purchase和flutter_billing作為依賴項。 一旦我刪除了 flutter_billing,一切都很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.