Reputation: 2360
I added to my project support library android-support-v7-appcompat, but I can't add source and javadoc for it.
I downloaded https://android.googlesource.com/platform/frameworks/support/+/master package with source and in Eclipse I set Source attachment to v7/appcompat/, but it doesn't work.
Can someone help me?
E: my solution is, I have two projects in Eclipse "android-support-v7-appcompat" (original lib from android-sdk\extras\android\support\v7\appcompat) and "android-support-v7-appcompat-src" (src from android.googlesource.com) and when I compile release version, so I used original lib and for debug I used src from googlesource.com.
PS: sorry for my english
Upvotes: 19
Views: 6107
Reputation: 12962
Sources for appcompat-v7 are available within "API21/Sources for Android SDK" package which can be downloaded with SDK Manager, the path is \sdk\sources\android-21\android\support\v7\
Android Studio will allow you to browse lib source code when you point this dir as appcompat-v7 source dir root.
Upvotes: 6
Reputation: 63912
Or the same using @andr answer to How do I attach the Android Support Library source in Eclipse?
git clone https://github.com/android/platform_frameworks_support android_sources_folder
add android-support-v7-appcompat.jar.properties
file into libs (next to android-support-v7-appcompat.jar) with content
src=D:\\android_sources_folder\\platform_frameworks_support\\v7\\appcompat\\src
close and reopen project
Upvotes: 8
Reputation: 82535
I was able to attach the source based on advice from How do I attach the Android Support Library source in Eclipse?.
Here's what I did:
First, clone the source repository and get whatever version corresponds to the released library (which I guessed):
Next, in Eclipse:
Upvotes: 9