The method is as follows: CD myandroid1. copy the Eclipse project configuration file to the CP development/IDE/Eclipse/Under the root directory of the android source code /. classpath. /chmod U + W. classpath # Make the copy writable2. modify the configuration of the eclipse program 1), increase the eclipse memory settings, and set eclipse. the three values of INI (under the installation directory of eclipse software) are changed to the following values:-Xms128m-Xmx512m-XX: maxpermsize = 256m3. check Before importing Android source code into eclipse as a project. 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 ),. you can delete unnecessary paths in classpath to create a Java Project (not an android project, no Will damage the android source code), select to import from an existing project, the project name is arbitrary, complete.. Project File Content ============================================ ========================================================== =================<? XML version = "1.0" encoding = "UTF-8"?> <Projectdescription> <Name> gingerbread </Name> <comment> </comment> <projects> </Projects> <buildspec> <buildcommand> <Name> org. eclipse. jdt. core. javabuilder </Name> <arguments> </buildcommand> </buildspec> <natures> <nature> Org. eclipse. jdt. core. javanature </nature> </natures> <symbol resources> <link> <Name> packages/providers/calendarprovider/src/COM/Android/providers/calendar/eventlogtags. java </Name> <type> 1 </type> <location>/work/gingerbread2.3/out/target/common/obj/apps/calendarprovider_intermediates/src/COM/android /providers/calendar/eventlogtags. java </location> </link> <Name> packages/providers/contactsprovider/src/COM/Android/providers/contacts/eventlogtags. java </Name> <type> 1 </type> <location>/work/gingerbread2.3/out/target/common/obj/apps/contactsprovider_intermediates/src/COM/android /providers/contacts/eventlogtags. java </location> </link> </cmdresources> </projectdescription> ====================== ========================================================== ========================================================== ====