1. Copy the Eclipse project configuration file to the root directory of the android source code.
CP development/IDE/Eclipse/. classpath ./
2. Modify eclipseProgramConfiguration
1) modify the eclipse cache settings
Change the three values of eclipse. ini (under the eclipse installation directory) to the following values:
-Xms128m
-Xmx512m
-XX: maxpermsize = 256 m
2), the android-formatting.xml and Android. importorder import eclipse
The android-formatting.xml,. classpath, and Android. importorder are all placed in the development/IDE/Eclipse/
Android-formatting.xml is used to configureCodeStyle; Android. importorder is used to configure the sequence and structure of eclipse import.
Import android-formatting.xml in window-> preferences-> JAVA-> code style-> formatter
Import Android. importorder to WINDOW> preferences> JAVA> code style> organize imports.
3. Import the android source code as a project into eclipse
Check Before importing. whether the files in classpath have corresponding files (folders) in the android source code; otherwise, the android source code will be damaged (usually multiple files/folders are added ),. the redundant paths in classpath can be deleted.
Create a Java Project (not an android project, otherwise the android source code will be damaged) and select import from an existing project. The project name is arbitrary and complete.