Android Eclipse Juno 中没有默认提案

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11653448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:23:10  来源:igfitidea点击:

No Default Proposals in Eclipse Juno

androideclipse

提问by Ravikiran

I switched to Eclipse Juno for android development recently.When I press "ctrl+space" to see available proposals.But it shows "No Default Proposals".

我最近切换到 Eclipse Juno 进行 android 开发。当我按“ctrl+space”查看可用提案时。但它显示“无默认提案”。

回答by mwk

I have the same problem; it occurred after I upgraded to Juno.

我也有同样的问题; 它发生在我升级到 Juno 之后。

My fix: - Window->Preferences->Java->Editor->Content Assist->Advanced - explicitly check Java Proposals - Apply

我的修复:-窗口->首选项->Java->编辑器->内容辅助->高级-明确检查Java提案-应用

That fixed it for me. (I don't know why Restore Defaults does not set this, seems like it should but it didn't work for me)

那为我修好了。(我不知道为什么“恢复默认值”没有设置这个,似乎应该但它对我不起作用)

回答by Wanna Coffee

Try restoring the Restore Defaultoptions in

尝试恢复中的Restore Default选项

Windows > Preferences > Java > Editor > Content Assist > Advanced > Restore Default

Windows > Preferences > Java > Editor > Content Assist > Advanced > Restore Default

See image clearly at below.

下图清晰可见。

Eclipse Image

日食图像

For more, have a look on

有关更多信息,请查看

  1. Eclipse/Java code completion not working.
  2. Content Assist (Ctrl + Space) Is Not Working – Eclipse
  1. Eclipse/Java 代码完成不起作用
  2. 内容辅助 (Ctrl + Space) 不起作用 – Eclipse

Hope it helps you.!!

希望对你有帮助。!!

回答by cleroo

Simply do a Project> Clean and then restart Eclipse. I had the same issue

只需执行 Project> Clean 然后重新启动 Eclipse。我遇到过同样的问题

回答by Ravikiran

Change workspace and try it now. It works fine for me.

更改工作区并立即尝试。这对我来说可以。

回答by Rocel

be sure your are in a java Perspective and that your project is reconized as an Android project maybe

确保您在 Java Perspective 中,并且您的项目可能被重新定义为 Android 项目