Flutter应用使用插件报错问题

Flutter应用中修复AndroidX崩溃:
https://blog.csdn.net/ytfunnysite/article/details/88313305
webview_flutter:0.2.0
解决
webview_flutter报错:

E/MethodChannel#flutter/platform_views(27071): Failed to handle method call
E/MethodChannel#flutter/platform_views(27071): java.lang.IllegalArgumentException: Unknown WebView setting: hasNavigationDelegate
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugins.webviewflutter.FlutterWebView.applySettings(FlutterWebView.java:135)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugins.webviewflutter.FlutterWebView.(FlutterWebView.java:25)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugins.webviewflutter.WebViewFactory.create(WebViewFactory.java:22)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:130)
E/MethodChannel#flutter/platform_views(27071): at android.app.Dialog.dispatchOnCreate(Dialog.java:410)
E/MethodChannel#flutter/platform_views(27071): at android.app.Dialog.show(Dialog.java:311)
E/MethodChannel#flutter/platform_views(27071): at android.app.Presentation.show(Presentation.java:235)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugin.platform.VirtualDisplayController.(VirtualDisplayController.java:75)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:47)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugin.platform.PlatformViewsController.createPlatformView(PlatformViewsController.java:179)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugin.platform.PlatformViewsController.onMethodCall(PlatformViewsController.java:118)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.plugin.common.MethodChannelKaTeX parse error: Expected 'EOF', got '#' at position 76: …E/MethodChannel#̲flutter/platfor…PlatformMessageHandlerImpl.handleMessageFromDart(FlutterNativeView.java:188)
E/MethodChannel#flutter/platform_views(27071): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:202)
E/MethodChannel#flutter/platform_views(27071): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/platform_views(27071): at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#flutter/platform_views(27071): at android.os.Looper.loop(Looper.java:135)
E/MethodChannel#flutter/platform_views(27071): at android.app.ActivityThread.main(ActivityThread.java:5418)
E/MethodChannel#flutter/platform_views(27071): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/platform_views(27071): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:731)
E/MethodChannel#flutter/platform_views(27071): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
D/cr_Ime (27071): [ImeAdapter.java:236] attach
E/flutter (27071): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Unknown WebView setting: hasNavigationDelegate, null)
E/flutter (27071): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter (27071): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:302:33)
E/flutter (27071):
E/flutter (27071): #2 AndroidViewController._create (package:flutter/src/services/platform_views.dart:580:54)
E/flutter (27071):
E/flutter (27071): #3 AndroidViewController.setSize (package:flutter/src/services/platform_views.dart:505:14)
E/flutter (27071):
E/flutter (27071): #4 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:178:29)
E/flutter (27071):
E/flutter (27071): #5 RenderAndroidView.performResize (package:flutter/src/rendering/platform_view.dart:159:5)
E/flutter (27071): #6 RenderObject.layout (package:flutter/src/rendering/object.dart:1617:9)
E/flutter (27071): #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #9 MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:142:11)
E/flutter (27071): #10 _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:350:7)
E/flutter (27071): #11 MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:212:7)
E/flutter (27071): #12 RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:356:14)
E/flutter (27071): #13 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #14 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #15 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #16 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #17 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1206:11)
E/flutter (27071): #18 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #19 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #20 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #21 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #22 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #23 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #24 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #25 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #26 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #27 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #28 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #29 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #30 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #31 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (27071): #32 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #33 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:3030:14)
E/flutter (27071): #34 RenderObject.layout (package:flutter/src/rendering/object.dart:1632:7)
E/flutter (27071): #35 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:510:15)
E/flutter (27071): #36 RenderObject._layoutWi

你可能感兴趣的:(跨平台)