Android Src:eclipse import Android Settings source

Source: Internet
Author: User
Keywords nbsp; select below then you can
Tags android code directory download eclipse import note operating

After several struggles, or the Android settings source successfully imported into eclipse, here to share!

Before this, I hope you do the following, otherwise reading down is just a waste of time.

<1> operating system uses 32-bit ubuntu10.10, software eclipse3.5,adt12.0,jdk1.6

<2> download android2.3 source, recommend http://blog.csdn.net/AndroidBluetooth/article/details/6538254

<3> compile source code, recommend http://www.cnitblog.com/houcy/archive/2011/02/10/72771.html

If you do the above work, the following is a piece of cake.

1. New Android Project

Copy source/packages/apps/settings to your other directory.

In Eclipse, create a new project, but choose from exitting Source:

2. Import related library files

I hope you do this, or you will encounter other inexplicable and wonderful mistakes.

Eclipse Middle Right Key item Settings/build Path/add Libray

Select User Libray, select New, and go to a name arbitrarily.

Note: Be sure to select the check box in front of System Libray.

Click OK and select the corresponding jar package.

The jar package is the package below the source directory/out/target/common/obj/java_libraries/framework_intermediates/.

Note This step:

In eclipse, the right key item Settings/build path/configure build path/, and you'll begin to see the following:

Then, adjust the order as follows:

3. Compile again

Clean in eclipse.

Note: You can put the source directory/out/target/common/obj/java_libraries/framework_intermediates/classes.jar this file into your settings project.

For example, create a new directory in the Settings libs, and then put the Classes.jar inside, then, follow the steps above 2 to do it again!

Import other source code, you may need to/out/target/common/obj/java_libraries/android-common_intermediates/the following jar file. A similar method can be imported.

goodluck!

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.