android-studio - Android Studio - 自动完成和其他功能不起作用

标签 android-studio

我安装了 android studio..它工作正常。现在突然间,所有自动完成功能都不起作用了。我可以在任何地方键入任何内容,无需变量检查,无需功能帮助或检查任何内容。我仍然可以编译该项目,但发生这种情况时会出现错误。

任何人都可以帮我解决这个问题吗?

最佳答案

#1 从(Android Studio 的)Build 菜单中,单击Rebuild Project 选项。

#2 然后,重建完成后,转到文件> 使缓存/重新启动... 并单击使重新启动按钮。

enter image description here

enter image description here

这对我来说确实有效。

来源:https://code.google.com/p/android/issues/detail?id=61844#c4

#1 Rebuild is required, because Android-Studio does simply rely solely on Gradle's build-result (without static-analysis support, at least at time of writing, 2022).

#2 Clearing cache is required, because the previous build-result (before above rebuild) may be indexed, which makes Android Studio ignore latest Gradle build-result
(this is a very good speed optimization, but a very bad Developer-experience as well).

There can sometimes be other reasons too, which is why there are many other answers posted here.

关于android-studio - Android Studio - 自动完成和其他功能不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18370599/

相关文章:

android studio 1.2 gradle 很慢

android - 不推荐使用 android 命令

Android Emulator 给出错误 SO_REUSEPORT 并且调试不起作用

Ubuntu 16.04 上的 Android 虚拟设备 (AVD) 创建问题

android - gradle espresso - 空测试套件

android - 尝试编译工作项目时 Android Studio 中的断言错误

将 REST 与 BaseAdapter 结合使用的 AndroidAnnotations 抛出 'Can' t 在未调用 Looper.prepare() 的线程内创建处理程序'

java - NullPointerException 从 Android Studio 中的资源加载 htm 文件

Android MediaPlayer W/MediaPlayer:信息/警告(703、203)

android - Phimp.me 项目的外部 native 构建问题