打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
解决 Eclipse 中 Android.jar 无法关联源代码的办法

解决 Eclipse 中 Android.jar 无法关联源代码的办法  



在 Eclipse 中一般的 jar 包在(F3 或 Ctrl + Click) 进到它的 Class 时,如果没有关联上源代码会有一个按钮让你关联下就可以查看源代码。可是在 Eclipse 中的 android.jar 中的类,却只会提示

Source not found
The JAR of this class file belongs to container 'Android 1.6' which does not allow modifications to source attachments on its entries.

在 D:\android-sdk_r05-windows\platforms\android-8 目录下建立 sources 文件夹,从 http://www.devfrustrated.com/devBlog/browsing-android-source-code-in-eclipse/ 这里下载需要的资源,解压后放入sources 中,重启Eclipse即可.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
eclipse 重新关联源代码
在Eclipse中关联源代码
eclipse maven引入第三方jar包后如何下载源代码(sources)
Android SDK源码安装教程
Making the Android SDK source code available in Eclipse 跟踪android sdk 源码
eclipse下如何关联android v4
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服