Android source code import and debugging methods

Source: Internet
Author: User
A. download the compiled Android system source code. The compiled source code contains the compiled content in the out folder B. set android2.2/development/IDE/Eclipse /. copy the classpath file to the root directory android2.2/C. create a Java project, select Create project from existing source, and select android2.2/D as the source path. follow the default Java Project (note that it is not an android project) to create the project. Note that the default project will reference four jar packages: javalib. jar, Arity. jar is required. The other two jars are not in the source code. They are jar packages prefixed by Google. They can be downloaded or not required. It only affects several lines of code, note that the Project Creation and compilation process will be slow due to the large amount of code. E. I didn't reference Google's jar package here. It's not very important to make a few errors. I comment it out, because our project can only be used for debugging code, and all the modifications won't work for the application, we only need to ensure that the compilation is successful. F. start the vm g. debug application. Note that you cannot debug the entire source code project like the android project. You can only select the corresponding package of an app for debugging. Note that you need to perform debug h according to the operation. obtain the ddms remote port number of the application to be debugged from the ddms view, and set it to I. okay. Now you can debug the corresponding system application process code. You can go to the ddms view and check whether the application process enters the debug mode.
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.