Use Eclipse to develop Android source code

Source: Internet
Author: User

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

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.