Eclipse Associated Source Code

Source: Internet
Author: User

In the absence of associated source code, the following problems can not see the Android source code

Workaround


1. Find the source location

2. Setting the association in Eclipse

------Development for Android

(1) Source code location is placed in the SDK directory sources file inside

Can see, I downloaded the source code is api-14 to api-19

(2) Eclipse Settings Association

Click on the Attach Source button on figure one to click External location in the Click External folder to add folders


Select your project corresponding API, because my project is 4.3 corresponding to api-18, so I chose the android-18

That's it. So the file is closed and then opened to see the source code.

Another question, suppose I now set the project to 4.4.2 that is api-19, the source code will automatically link to api-19?

Answer: It will be automatically linked.

I did a small experiment, with tools in the api-18 and api-19 activity source added a little logo

Start the project is 4.3 open activity source code is API-18 logo, when I set the project to 4.4.2, open the source code

See the logo is API-19, verify the above problems.













Eclipse Associated Source Code

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.