I am using Ubuntu 14.04 and I've taken last source code of Android by following the instructions from the official website of Android: http://source.android.com/source/downloading.html.
I also followed the instructions for installing other programs that are required for build Android source code: http://source.android.com/source/building.html.
To build the Android source code I follow instructions from http://source.android.com/source/building-running.html.
Build has not been done successfully without installing some additional programs that I have taken through the forums by asking why not Android source code build successfully.
After build successfully image is created in out/target/produkt/generic/system.img, then I opened the emulator by written the command "emulator" in terminal.
My question is what is the correct way to import or open the Android source code into Eclipse or Android Studio to start working, because when I import projects of Android source code in Eclipse. I have errors with this ways:
1.Create an empty java project. Properties>Java Build Path>Source>Link Source>Android folder path.
2.File>new>java project> Location: Android folder path.
3.Import>Android>Existing Android Code into Workspace>Root Directory: Android Folder.