android - 在 Eclipse 中没有获得内容助手/智能感知

标签 android eclipse intellisense content-assist

我遇到问题,内容助手/intellisense 在 onCreate 等方法中工作,但当我在 onClick 方法中调用它时,它不起作用。

我附上了两种情况的屏幕截图。

Working Content Assistant

上图显示了当我在 oncreate 方法中使用 ctrl + space 调用它时它的工作

Not Working Content Assistant

上图不工作

我还收到此错误“ACTIVITY NAME 类型的方法 onCreate(Bundle) 必须覆盖或实现父类(super class)型方法”

如图所示

enter image description here

但是 Activity 已经覆盖了 super 方法。

仅在本 Activity 中发生,其他 Activity 内容助手正在工作。

最佳答案

您是否尝试过重置为默认选项:

Windows -> Preferences -> Java -> Editor -> Content Assist -> Advanced

其中“Api Proposal tools”是主要的。

然后它将起作用,在上面的窗口中,所有选项仅适用于智能感知(Ctrl + Space),只需看一下,如果感到困惑,则只需将其设置为默认值即可。

关于android - 在 Eclipse 中没有获得内容助手/智能感知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10040460/

相关文章:

eclipse 在无限循环中启动 'Building workspace'

javascript - 在类型函数中嵌套泛型

jquery - Virtual Studio 2008 - ASP.NET - jQuery 1.7.1 VSDoc - JavaScript Intellisense?

android - 无法将 Android Studio 从 1.3.0 修补到 1.4.0

android - adb 无法在 Ubuntu 64 上运行 - 找不到命令

java - 为 Eclipse 中的项目生成 Ant 构建文件

c# - 大型项目在 Visual Studio 中加载时间长

android - SwitchCompat 改变颜色

android - GPS定位和深度 sleep

Android:如何避免在重新安装过程中丢失数据?