About Android Multi-project dependencies in eclipse cannot correlate source code problem resolution (Android dependencies Source)

Source: Internet
Author: User

Reproduced in: http://www.cnblogs.com/flashlm/archive/2013/02/22/ Eclipse-android-project-dependencies-does-not-allow-modifications-to-source-attachments.html

The problem of being unable to correlate the source code with an Android dependent project in Eclipse has been a long time and finally solved, greatly improving the development efficiency.

Problem Description: The project has a A, a, two Android project, B is the Android Library (android.library=true), a refers to B. Now in the A project code, click on the Class B project, want to view the definition, can not directly open the project B source (hint: The JAR of this class file belongs to Container ' Android Dependencies ' which does Not allow modifications to source attachments on its entries.)

Workaround: in the. classpath file for the project on which the code is dependent (that is, the B project above), place the line referencing the main code in the first row, not the other Java code, especially the Gen folder <classpathentry kind= "src" path= "Src/java"/>

About Android Multi-project dependencies in eclipse cannot correlate source code problem resolution (Android dependencies Source)

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.