如何添加源+的javadoc为Android支持-V7?javadoc、Android

2023-09-05 10:05:00 作者:花开花落谁相惜

我添加到我的项目支持库Android的支持-V7-appcompat,但我不能添加源和javadoc吧。

I added to my project support library android-support-v7-appcompat, but I can't add source and javadoc for it.

我下载https://android.googlesource.com/platform/frameworks/support/+/master包源和在Eclipse中我将源代码连接到V7 / appcompat /,但它不能正常工作。

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.

有人能帮助我吗?

E:我的解决办法是,我有两个项目在Eclipse中Android的支持-V7-appcompat(从Android的SDK \额外原来的lib \机器人\ SUPPORT \ V7 \ appcompat)和Android的支持,v7- appcompat-SRC(SRC从android.googlesource.com),当我编译发布版本,所以我用原来的lib和调试我用SRC从googlesource.com。

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:很抱歉,我的英语

PS: sorry for my english

推荐答案

我能够从连接基于咨询源Android支持库(V4)。获取源代码并将其连接到库/罐子在Eclipse 。

I was able to attach the source based on advice from Android Support Library (v4). Getting the source and attaching it to the library/jar in Eclipse.

下面是我所做的:

首先,克隆的源代码库,并​​得到任何版本对应的发行库(我猜):

First, clone the source repository and get whatever version corresponds to the released library (which I guessed):

混帐克隆https://android.googlesource.com/platform/frameworks/support CD支持 git的结帐Android的4.3.1_r1

接下来,在Eclipse:

Next, in Eclipse:

右键单击项目,选择的属性的 选择的 Java构建路径的 选择的库的标签 添加外部JAR> YourProject /库/ Android的支持-V7-appcompat.jar(我知道你的项目已经参考,但不要担心,只需再添加它)。 展开罐和连接源的外部JAR:WhereverYouHaveTheSource /支持/ appcompat 切换到排序和导出选项卡,将上面的Android的依赖外部罐子 Right-click project and choose Properties. Select Java Build Path Select the Libraries tab 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). Expand jar and attach Source to the External Jar: WhereverYouHaveTheSource/support/appcompat Switch to the "Order and Export" tab, move the external jar above the "Android Dependencies"
 
精彩推荐
图片推荐