第三方jar包无法查看源码
来源:互联网 发布:电脑抢票软件 编辑:程序博客网 时间:2024/05/23 22:54
From:ADT 17?
查看源码错误提示:
The JAR of this class file belongs to container 'AndroidDependencies'whichdoes not allow modifications to source attachments on itsentries.
Step by step guide
In order to link the
- Place the library .jar file in the
libs folder,and the associated source .jar and doc .jar files in separatesubfolders such as libs/src and libs/docs.You can use a name other than src and docs ifyou want, but it's important that the .jar files aren't directly inthe libs folder. - Create a
.properties
filein the libs folderwith the exact name of the actual library .jar (see example). Makesure you keep the .jar part. - Specify the relative paths to the sources and javadoc .jar inthe
.properties
file. - Close
and re-open the Eclipse project!Optionally, refresh the project bypressing F5. - Select an object of the linked library in the source code.
- Open the Javadoc view in Eclipse to check the documentation (seescreenshot).
- Open the source code declaration (defaultshortcut:
F3)of the selected object.
Example
The example uses the
Directory structure of the libs folder:
libs├── docs│ └── gson-2.2.2-javadoc.jar├── gson-2.2.2.jar├── gson-2.2.2.jar.properties└── src └── gson-2.2.2-sources.jar
Contents of gson-2.2.2.jar.properties
src=docs/gson-2.2.2-sources.jardoc=src/gson-2.2.2-javadoc.jar
Additional information
You can of course move the javadoc and sources .jar into otherfolders and specify relative paths. That's up to you. Placing thesource and javadoc jars directly intothe
0 0
- 第三方jar包无法查看源码
- 无法查看第三方jar包源代码
- Eclipse 无法查看第三方jar包文件源代码解决方法
- Eclipse 无法查看第三方jar包文件源代码解决方法
- Eclipse 无法查看第三方jar包文件源代码解决方法
- Eclipse 无法查看第三方jar包文件源代码解决方法
- eclipse无法查看第三方jar包的问题
- 2.android导入第三方jar包,查看源码
- 解决Eclipse,STS查看第三方jar包源码问题
- eclipse,android查看第三方jar源码
- 第三方JAR无法关联源码
- 第三方jar包
- 导入第三方jar包后编译源码问题
- 源码里开发的应用程序引用第三方jar包
- 在android源码编译中导入第三方jar包
- Android 源码apk导入多个第三方jar包
- eclipse调试第三方jar包需要源码的问题
- android系统源码中引用第三方jar包
- Android 4.2 Gson 报错 Class no find
- GCD
- Base64,DES,RSA,SHA1,MD5笔记
- VM.SWAPPINESS=0在最新内核中可能会OOM,MYSQL被意外KILL
- CCSpriteBatchNode使用限制
- 第三方jar包无法查看源码
- WebView loaddata中文乱码
- 转载和积累系列 - js中的垃圾回收机制
- Cocos2d touch监听顺序
- Erlang构建和匹配二进制数据(Efficiency Guide)
- CCOrbitCamera-cocos2d翻转效果
- Android lib or libs?
- no identity foundCommand /usr/bin/codesign failed with exit..
- Cornerstone SVN Error - Cant commit files