自动完成功能在带有 Flutter 的 Android Studio 中无法正常工作 - 第一个建议无关紧要 [英] Autocomplete not working correctly in Android Studio with Flutter - First suggestions are irrelevant

查看:27
本文介绍了自动完成功能在带有 Flutter 的 Android Studio 中无法正常工作 - 第一个建议无关紧要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Flutter 和 Android Studio.我跑了颤振医生 -

如您所见,第一个建议不是 ScrollPhysics 类型,并且与上下文无关,在我向下滚动后,有 ScrollPhysics 建议,但它们是在一些滚动之后.

解决方案

此问题可以通过以下方法之一解决

  1. 使缓存无效并重新启动解决了我的问题.转到

<块引用>

<代码>文件->验证缓存/重新启动 ->失效并重启

  1. 重启 Dart 分析服务器.按照下面的图片

请注意,上述所有解决方案都有效,但不是永久性的,因为最新的 dart 分析服务器中似乎存在错误,您可以关注订阅 这个报告的问题更多更新

I installed Flutter and Android Studio. I ran flutter doctor - Flutter doctor

I have the Dart plugin installed - v191.8593.

When I press Ctrl + Space at a very obvious place the AutoComplete do not suggest the right suggestions. Example:

View animation here

As you see the first suggestion are not of type ScrollPhysics and are out of context, and after I scroll down, there are ScrollPhysics suggestions, but they are after some scrolling.

解决方案

This problem can be fixed by one of the following

  1. Invalidate caches and Restart fixed my problem. Goto

File-> Ivalidate caches / Restart -> Invalidate and Restart

  1. Restart Dart Analysis Server. Follow the pic below

Note all above solutions works but are not permanent as it appears there is bug in latest dart Analysis server you can follow subscribe to this reported issue for more updates

这篇关于自动完成功能在带有 Flutter 的 Android Studio 中无法正常工作 - 第一个建议无关紧要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆