flutter - 我可以避免这个错误吗? E/InputMethodManager : Failed to get fallback IMM with expected . flutter.plugins.webviewflutter.InputAwareWebView

标签 flutter latex flutter-dependencies flutter-release

我正在使用 flutter_texflutter_tex

  flutter_tex: ^3.6.7+10

我想在 Play 商店中发布该应用。我的应用程序运行良好。但我在调试控制台中收到此消息。
我可以避免吗?


TeXView(
  renderingEngine: const TeXViewRenderingEngine.katex(),
  child: TeXViewDocument('\$\$$text\$\$'),
),

出现此错误:

E/InputMethodManager(28630):b/117267690:无法获得预期 displayId=137 实际 IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{86b4162 VFEDHVC.. ....... 0,0-864,188}

E/InputMethodManager(28630): b/117267690: Failed to get fallback IMM with expected displayId=137 
actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{86b4162 VFEDHVC.. 
........ 0,0-864,188}
D/EGL_emulation(28630): eglMakeCurrent: 0x963e0360: ver 2 0 (tinfo 0xebe0dce0)
E/InputMethodManager(28630): b/117267690: Failed to get fallback IMM with expected displayId=138 
actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{47b28d1 VFEDHVC.. 
........ 0,0-864,188}
D/HostConnection(28630): HostConnection::get() New Host Connection established 0x6bd973d0, tid 28933
D/HostConnection(28630): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1        
ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 
ANDROID_EMU_vulkan     ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings 
ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache 
ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync 
ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit 
GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing 
ANDROID_EMU_gles_max_version_2 
E/InputMethodManager(28630): b/117267690: Failed to get fallback IMM with expected displayId=139 
actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{d55bd6b VFEDHVC.. 
........ 0,0-864,188}
E/InputMethodManager(28630): b/117267690: Failed to get fallback IMM with expected displayId=140 
actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{24c90e0 VFEDHVC.. 
........ 0,0-864,188}

不关心这个是否安全。

最佳答案

我们必须启用混合组合,设置 WebView.platform = SurfaceAndroidWebView(); 你可以看看这个github链接https://github.com/flutter/flutter/issues/40716#issuecomment-708076795 .这帮助我解决了这个错误。

关于flutter - 我可以避免这个错误吗? E/InputMethodManager : Failed to get fallback IMM with expected . flutter.plugins.webviewflutter.InputAwareWebView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65308257/

相关文章:

android - 面向 Android 12 及更高版本的应用需要为 'android:exported' 指定显式值

android - 当设备是 iPhone 时如何显示后退按钮

flutter - 如何在Flutter Web中管理 session 和导航的最佳方法

r - 将多个框架选项传递给 rmarkdown::beamer_presentation 中的单个框架

label - 如何修复 Latex 中错误的表格标签?

flutter - 如何在 flutter 中使用弹出菜单制作 float 操作按钮?

flutter - 在 cmd 或 powershell 中执行 `flutter doctor` 时出现错误

html - 适用于 HTML 的所见即所得 LaTeX 编辑器

dart - Flutter - 如何使用前置摄像头扫描二维码?

android - 未找到 ID 为 'com.google.gms:google-services' 的插件。 flutter