Edit files (in my case in directory /opt/android-studio/bin/) studio.vmoptions and studio64.vmoptions with:
-Xms748m
-Xmx748m
Edit file (in my case in directory /opt/android-studio/bin/) idea.properties with:
idea.max.intellisense.filesize=5000
Go to project root directory;
$ . build/envsetup.sh
$ cd development/tools/idegen
$ mm
Go back to project root directory;
$ development/tools/idegen/idegen.sh
In Android Studio:
File → Open → <project root directory>/android.ipr
File → Project Structure → Platform Settings → SDKs
Name: 1.6
File → Project Structure → SDKs → Classpath
Remove all jars;
Apply;
File → Project Structure → Project Settings → Modules → Dependencies
Module SDK: 1.6
Remove all jars;
Apply;
File → Project Structure → Project Settings → Modules → Sources
Right click over /out/target/common/R
Sources
Apply
Test if while clicking the CTL button over classes, methods and variables displays additional information