Android 颤振-在应用程序购买插件中运行时出错:";缺少BillingClient的PluginException“;

Android 颤振-在应用程序购买插件中运行时出错:";缺少BillingClient的PluginException“;,android,flutter,dart,in-app-purchase,in-app-billing,Android,Flutter,Dart,In App Purchase,In App Billing,我试着运行flatter官方的应用内购买插件的示例脚本,位于。我将这些示例添加到我的一个应用程序屏幕中 然而,从“我的应用”屏幕到“应用内购买”的示例屏幕,我发现以下错误: E/flatter(2557):[错误:flatter/lib/ui/ui\u dart\u state.cc(148)]未处理的异常:MissingPluginException(在channel plugins.flatter.io/in\u app\u purchase上找不到BillingClient\startCo

我试着运行flatter官方的应用内购买插件的示例脚本,位于。我将这些示例添加到我的一个应用程序屏幕中

然而,从“我的应用”屏幕到“应用内购买”的示例屏幕,我发现以下错误:

E/flatter(2557):[错误:flatter/lib/ui/ui\u dart\u state.cc(148)]未处理的异常:MissingPluginException(在channel plugins.flatter.io/in\u app\u purchase上找不到BillingClient\startConnection(BillingClientStateListener)方法的实现) E/flatter(2557):#0 MethodChannel.invokeMethod(包:flatter/src/services/platform_channel.dart:314:7) E/颤振(2557): E/flatter(2557):#1 BillingClient.start连接(包:in#u app_purchase/src/billing_client_wrappers/billing_client_wrappers.dart:89:62) E/颤振(2557): E/Flatter(2557):#2 GooglePlayConnection.(软件包:in_app_purchase/src/in_app_purchase/google_play_connection。dart:166:21) E/Flatter(2557):#3个新的GooglePlay连接。(软件包:in_app_purchase/src/in_app_purchase/google_play_connection。dart:27:20) E/flatter(2557):#4 GooglePlayConnection._getOrCreateInstance(软件包:in_app_purchase/src/in_app_purchase/google_play_connection.dart:161:38) E/flatter(2557):#5 GooglePlayConnection.instance(包:in_app_purchase/src/in_app_purchase/google_play_connection.dart:32:47) E/flatter(2557):#6在应用程序连接中。#获取或创建实例(包:在应用程序中购买/src/在应用程序中购买/在应用程序中购买连接。dart:225:40) E/flatter(2557):#7 inapphaseconnection.instance(包:in_app_purchase/src/in_app_purchase/in_app_purchase\u connection.dart:216:50) E/Flatter(2557):#8个新的永久捐赠者或Screenstate(软件包:zipediapps/src/ui/sadaqah/permanent捐赠者屏幕。dart:79:71) E/flatter(2557):#9 PermanentDonorScreen.createState(包:zipediapps/src/ui/sadaqah/PermanentDonorScreen.dart:52:47) E/flatter(2557):#10个新的stateflement(包:flatter/src/widgets/framework.dart:3989:25) E/flatter(2557):#11 StatefulWidget.createElement(包:flatter/src/widgets/framework.dart:802:38) E/flatter(2557):#12元素。充气小部件(包:flatter/src/widgets/framework.dart:3082:40) E/flatter(2557):#13 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#14 SingleChildRenderObjectElement.mount(包:flatter/src/widgets/framework.dart:5092:14) E/flatter(2557):#15 Element.inflateWidget(包:flatter/src/widgets/framework.dart:3084:14) E/flatter(2557):#16 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#17 ComponentElement.performRebuild(包:flatter/src/widgets/framework.dart:3935:16) E/flatter(2557):#18 Element.rebuild(包:flatter/src/widgets/framework.dart:3721:5) E/flatter(2557):#19组件元素。firstBuild(包:flatter/src/widgets/framework.dart:3907:5) E/flatter(2557):#20 ComponentElement.mount(包:flatter/src/widgets/framework.dart:3902:5) E/flatter(2557):#21 Element.inflateWidget(包:flatter/src/widgets/framework.dart:3084:14) E/flatter(2557):#22 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#23 SingleChildRenderObjectElement.mount(包:flatter/src/widgets/framework.dart:5092:14) E/flatter(2557):#24 Element.inflateWidget(包:flatter/src/widgets/framework.dart:3084:14) E/flatter(2557):#25 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#26 SingleChildRenderObjectElement.mount(包:flatter/src/widgets/framework.dart:5092:14) E/flatter(2557):#27 Element.inflateWidget(包:flatter/src/widgets/framework.dart:3084:14) E/flatter(2557):#28 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#29 SingleChildRenderObjectElement.mount(包:flatter/src/widgets/framework.dart:5092:14) E/flatter(2557):#30 Element.inflateWidget(包:flatter/src/widgets/framework.dart:3084:14) E/flatter(2557):#31 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#32 SingleChildRenderObjectElement.mount(包:flatter/src/widgets/framework.dart:5092:14) E/flatter(2557):#33 Element.inflateWidget(包:flatter/src/widgets/framework.dart:3084:14) E/flatter(2557):#34 Element.updateChild(包:flatter/src/widgets/framework.dart:2887:12) E/flatter(2557):#35 ComponentElement.performRebuild(包:flatter/src/widgets/framework.dart:3935:16) E/flatter(2557):#36 Element.rebuild(包:flatter/src/widgets/framework.dart:3721:5) E/flatter(2557):#37组件元素。_firstBuild(包:flatter/src/widgets/framework.dart:3907:5) E/flatter(2557):#38 StatefulElement._firstBuild(包:flatter/src/widgets/framework.dart:4053:11) E/flatter(2557):#39 ComponentElement.mount(包:flatter/src/widgets/framework.dart:3902:5) E/颤振(2557):#40 E I/颤振(2557):0

关于颤振博士,以下是状态:

[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.1 18B75, locale en-ID)
    • Flutter version 1.7.8+hotfix.3 at /Users/anunixercoder/development/flutter
    • Framework revision b712a172f9 (3 weeks ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0


[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/anunixercode/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • CocoaPods version 1.7.2

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.2.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.
有什么解决办法吗

提前感谢…

您是否尝试过“颤振清洁”,然后再试一次。我发现这有时会对类似的平台错误有所帮助