从FlutterView启动活动时发生崩溃

时间:2019-07-15 12:14:42

标签: android flutter

我只是从flutterview开始一个活动,然后发生崩溃。信息。

    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.View.getContext()' on a null object reference
            at io.flutter.plugin.platform.PlatformViewsController.checkInputConnectionProxy(PlatformViewsController.java:336)
            at io.flutter.view.FlutterView.checkInputConnectionProxy(FlutterView.java:402)
            at android.view.inputmethod.InputMethodManager.restartInput(InputMethodManager.java:1354)
            at android.view.inputmethod.InputMethodManager.onAmigoPostWindowFocus(InputMethodManager.java:1845)
            at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4157)
            at android.os.Handler.dispatchMessage(Handler.java:110)
            at android.os.Looper.loop(Looper.java:203)
            at android.app.ActivityThread.main(ActivityThread.java:6354)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1111)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)

0 个答案:

没有答案