Problem description
Source not found
The JAR file D:\.....\sdk\platforms\android-17\android.jar has no source attachment.
The hint is that you can't find the source code for the Android.jar.
Solution:
Since my project was created with the target SDK and Compile with option android4.2.2, the corresponding API is 17, so eclipse cannot find the source code for Android.jar in Android API 17.
1. Download the 4.2.2 version of the sources for Android SDK using the SDK manager
Found it
D:/ADT-BUNDLE-WINDOWS-X86_64-20130522/SDK/SOURCES/ANDROID-17
Click OK and the source code is displayed.
================
2013.10.9 Update:
It is possible to use the new API for android4.3 (API 18), which today uses Eclipse/adt bundle to appear
The source attachment does not contain the source for the file *.class problem, while the specified source code directory is no problem, the problem is actually coding problems.
The encoding option in the above figure is modified to UTF-8 to solve the problem.
The above is the entire content of this article, I hope to help you learn.