I know how to import android source code into eclipse , but is there any way to import android source code into android studio.because i want to change my ide from eclipse to an
I found the answer from my colleague, he told me that , use the file in sourcecode/development/ide/eclipse/.classpath . this file is for eclipse to import android source code . but there is a way to transfer this file into a intellij project import file . sorry , I also don't know how to transfer. but my colleague email me a *.iml file.yeah ,this is the file that can help you crate the intellij module . After you get the file ,copy that *.iml file to the root of your sourcecode,then you can open the intellij,create a empty project ,import module from existing module ,then in the window ,chose the *.iml file ,after that ,the only thing you can do is wait . it takes much time to import it. so ,you can develop the android source code in intellij . enjoy it!
Follow the steps to Migrate to Android Studio:
Export from Eclipse
Import to Android Studio
That's all you need to do. For more you may refer to official doc.
I know this was already answered, but I wanted to add onto this for anyone else that sees this.
For Android studio:
Open terminal (*nix system) call the following:
{AOSP root}/make idegen && development/tools/idegen/idegen.sh
This will generate an android.ipr
file in the {AOSP root}
directory.
android.ipr
file.Now you have the entire Android framework loaded into Android Studio.