How to add source + javadoc for android-support-v7?

后端 未结 3 1093
刺人心
刺人心 2020-12-31 02:18

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/platfor

3条回答
  •  萌比男神i
    2020-12-31 03:03

    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):

    1. git clone https://android.googlesource.com/platform/frameworks/support
    2. cd support
    3. git checkout android-4.3.1_r1

    Next, in Eclipse:

    1. Right-click project and choose Properties.
    2. Select Java Build Path
    3. Select the Libraries tab
    4. Add External JARs > YourProject/libs/android-support-v7-appcompat.jar (I know your project had already referenced to it but don't worry, just add it again).
    5. Expand jar and attach Source to the External Jar: WhereverYouHaveTheSource/support/appcompat
    6. Switch to the "Order and Export" tab, move the external jar above the "Android Dependencies"

提交回复
热议问题