android libs下的源码和文档配置
来源:互联网 发布:小小冰人 知乎 编辑:程序博客网 时间:2024/06/04 23:52
android libs下的源码和文档配置
自从把adt升级到22之后,android项目libs中的第三方包无需手动添加,eclipse会通过com.android.ide.eclipse.adt.LIBRARIES自动添加到目录
Android Private Libraries中,但是坑爹的是除了android可以设置source之外,其他目录下的竟然不能编辑设置了。
随着android的发展,更多好的开源项目不断被提供给我们使用,对于想看看一些第三包源码的同学们来说,这太残酷了。。。
然后在https://code.google.com/p/android/issues/detail?id=27490#c21里,我们看到一个21楼的伙计提供了如下方法
The source attachement in fixed for r20.
If you have library projects you should see the source for those automatically.
As for the original issue in this bug:
- if you want to manually reference libraries in your project, you need to make them exported. If the project is a library then project referencing your library will *not* have access to those libraries.
- adding them to libs/ is the way to have dependencies be automatically resolved when you have several libraries, all depending on 3rd party libs (some of which may be the same or may be conflicting with each other).
Source attachement: to work with the new dependency system, we need to put the source attachement outside of the eclipse config.
Next to any jar files in libs/ simply put a .properties file (foo.jar -> foo.jar.properties). This properties file currently support two properties:
src: relative or absolute path to the source folder (or archive).
doc: relative or absolute path to the javadoc.
The properties file is a standard Java properties file, using ISO 8859-1 character encoding.
吼吼~~~
基本的设置流程如下
例如:项目中有libs目录,有android-support-v4.jar,
对应的源码和文档我们放在/home/marsuu/libsrc/android-support-v4_source.jar和/home/marsuu/libdoc/android-support-v4_doc.jar目录下
那么我们在libs目录下新建文件android-support-v4.jar.properties 打开编辑
src=
/home/marsuu/libsrc/android-support-v4_source
.jar
doc=
/home/marsuu/libsrc/android-support-v4_doc
.jar
保存,关闭项目重开 或者重启eclipse,你可以在开发中直接查看源码文件咯~~~
- android libs下的源码和文档配置
- 如何给Android工程的libs目录下的jar包附加源码
- android中libs目录下armeabi和armeabi-v7a的区别 ...
- android中libs目录下armeabi和armeabi-v7a的区别
- android中libs目录下armeabi和armeabi-v7a的区别
- Android ADT20+ 关联 libs/*.jar 源码包的方法
- Android v22.0.1+ 关联 libs/*.jar 源码包的方法
- android libs 中jar包关联源码的方法
- android studio libs 下导入so的问题
- Android libs中jar源码查看
- ubuntu下android源码环境的配置
- vs2010下配置include,libs文件目录
- Libs文件夹下的Jar文件为什么不会自动放在Android Private Libraries目录下
- Android Studio 将libs下的JAR打到总的Jar包下
- Eclipse中Android项目的Android Private Libraries不自动引入libs下的jar包
- android工程目录下,lib和libs到底有什么区别
- eclipse调试libs下的jar包
- Android目录Frameworks下base/libs/ui/EventHub.cpp中加键盘布局文件名称的注释
- 线性模型中的变量选择方法
- Android学习篇章14-ColorMatrix-ColorMatrixColorFilter颜色变化
- yii jquery折叠、弹对话框、拖拽、滑动条、ol和ul列表、局部内容切换
- 学习matlab中遇到的一些函数及其用法
- ExtJs学习篇---使用Extjs 加DWR 实现文件上传
- android libs下的源码和文档配置
- linux内存文件系统之指南
- LARS算法简介
- centos笔记1--安装服务后启动不识别
- opencv cvsaveimage()参数
- 基于openfire实现的androidpn的推送
- 修正的LARS算法和lasso
- 探索Google App Engine背后的奥秘(1)–Google的核心技术
- Ubuntu12.04搭建自有源