Aosp: Eclipse imports Android settings source code

Source: Internet
Author: User

After several struggles, we have successfully imported the Android settings source code into eclipse!


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


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


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

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


If you do the above work well, the following is a pile of dishes.


1. Create an android Project


Copy the source code/packages/apps/settings to your other directories.


In eclipse, create a project, but select from exitting Source:




2. Import related library files


I hope you do this, otherwise you will encounter other inexplicable errors.

In eclipse, right-click the Project Settings/build path/Add libray




Select User libray and new.


Note: select the check box before system libray.


Click OK and add jars (add the corresponding jar package.




The jar package is the package under the/out/target/common/obj/java_libraries/framework_intermediates/directory of the source code.



Note:

In eclipse, right-click the Project Settings/build path/configure build path/and you will see the following:




Then, adjust the order as follows:




3. recompile


Clean in eclipse.


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

For example, create a directory libs in settings, put classes. jar in it, and then perform the following steps again!


Import other source code, which may be required

/Out/target/common/obj/java_libraries/android-common_intermediates/

The following JAR file. Import data in a similar way.


Good luck!


 


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.