Android source code imported in eclipse (successful)

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. 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.

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.