Import the Android system source code to eclipse

Source: Internet
Author: User

1. Copy the Eclipse project configuration file to the root directory of the android source code.
CP development/IDE/Eclipse/. classpath ./
2. Create a file. Project in the root directory of the android source code with the following content:
XML Code
<? XML version = "1.0" encoding = "UTF-8"?>
<Projectdescription>
<Name> gingerbread </Name>
<Comment> gingerbread source </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>
</Projectdescription>

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.
4. debugging settings:
Double-click Run-> debug deployments-> remote Java application, and set "Host:" to localhost, "port:" To 8700 or 8600, "connection type" is standard (socket attach)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.