Intellij IDEA CE 12 Android XML代码完成无法正常工作 [英] Intellij IDEA CE 12 Android XML Code Completion not working

查看:173
本文介绍了Intellij IDEA CE 12 Android XML代码完成无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始学习用于Android开发的IntelliJ IDEA CE 12,作为Eclipse的替代品。

I just started to learning IntelliJ IDEA CE 12 for Android development, as an alternate to Eclipse.

IDEA非常快,我开始喜欢它了。

但是,当我尝试编辑Android XML文件时,代码完成永远不会出现。在我的办公室,我正在使用MacBook Air(64位),当我尝试使用Mac版本时,它工作得非常漂亮。

在我的家里,我使用的是Vista(32位版本),我的笔记本电脑规格是不太好。 (这就是为什么我选择从Eclipse更改为IDEA ...)

IDEA is very quick and I'm beginning to like it.
However, when I try to edit Android XML file, the code completion never appears. In my office, I'm using MacBook Air (64bit), and when I tried Mac version, it worked beautifully.
In my home, I'm using Vista (32bit ver) and my laptop specs are not so good. (that's why I choose to change to IDEA from Eclipse...)

我在安装后没有更改任何设置。是否有任何选项可以启用Android XML编辑器的代码完成?或者只是机器的性能问题?

I have not changed any Settings after the installation. Is there any option(s) to enable code completion for Android XML editor? Or it is just the matter of machine's performance?

我知道这是一个垃圾问题,但我真的需要帮助。

提前谢谢你。

I know it's a rubbish question, but I really need help here.
Thank you in advance.

推荐答案

请检查项目是否配置正确,模块是否已 Android facet 和Android SDK平台中的依赖项。

Please check that project is configured properly and your module has Android facet and Android SDK Platform in the dependencies.

IntelliJ IDEA在您打开时执行JSDK,Android平台和项目的索引编制这是第一次。您需要等待索引过程完成(进度显示在底部的状态栏中)。

IntelliJ IDEA performs indexing of the JSDK, Android Platform and your project when you open it for the first time. You need to wait for the indexing process to complete (progress is displayed in the status bar at the bottom).

索引完成后,您应该获得所有代码完成可用的选项。如果由于某种原因它仍然无效,请尝试文件 | 使缓存无效并重新启动IDEA。

Once indexing is complete, you should get all the code completion options available. If for some reason it still doesn't work, try File | Invalidate Caches and restart IDEA.

这篇关于Intellij IDEA CE 12 Android XML代码完成无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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