Refer to the previous articleArticleCorrectly establishing and calling the android Public Library in eclipse. In the past, as long as a reference is added to the android library, the source code can be automatically introduced to the project:
However, after updating the new SDK and ADT plug-in, the source code will not be automatically referenced. In the current project, you can only access the compiled source code in read-only mode:
So how to manually introduce the source code?
Right-click the properties menu on the project, select "Java build path" in the left column, and click "link source…" in the "Source" tab on the right ..." Button:
Click "Browse ..." Button:
Browse and select the src directory of the referenced project:
After confirming, modify the folder display name:
In this way, the source code is referenced by the correct link and can be changed after the jump at any time:
Note that this method will cause the notorious "conversion to Dalvik format failed with error 1" error during compilation and cannot be compiled, in this case, you only need to delete the source code directory of the link from the project and compile it. However, after compilation, you have to add the source code as described above to facilitate coding, I have to praise the android sdk r & D team for being a perfect combination of cerebral palsy. Every time I upgrade the SDK, there will be a lot of weird Errors for developers.