Use Eclipse to develop Android source code
1. Copy the eclipse project configuration file to the root directory of the Android source code.
Cp development/ide/eclipse/. classpath ./
2. modify the configuration of the eclipse Program
Not set, because the version is relatively high
3. Import Android-formatting.xml and android. importorder into eclipse
Import Android-formatting.xml in window-> preferences-> java-> Code style-> Formatter
Import Android. importorder to window> preferences> java> Code style> Organize Imports.
4. Import the Android source code as a project into eclipse
Before importing the file, check whether the file in. classpath has the corresponding file in the Android source code. Otherwise, the android source code will be damaged. The redundant path in classpath can be deleted.
Create a Java Project and select import from an existing Project. The Project name is arbitrary.
Eclipse needs to build the project during import.
. Classpath
. Project
<projectdescription><name>Android4.2</name><comment><projects> </projects><buildspec> <buildcommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments></arguments> </buildcommand></buildspec><natures> <nature>org.eclipse.jdt.core.javanature</nature></natures></comment></projectdescription>
Import Error
Solution: Comment. classpath