Question

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

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...)

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.

Was it helpful?

Solution

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

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).

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.

OTHER TIPS

Faust,

I was having the same problem and here are the solutions I found:

  1. Go to File->Power Save Mode and disable it.
  2. Go to Preferences->Editor->Code Completion and check Autopopup code completion
  3. Go to File->Invalidate Caches and restart.

Disabling Power Save Mode is what fixed it for me!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top