Android 2.3.3 安卓系统 源代码 在Eclipse查看方法

Eclipse中关联SDK源码,方便阅读熟悉底层源码。

一、下载android2.3.3源码。

http://rgruet.free.fr/public/android-2.3.3-gingerbread-src.zip

 

二、在SDK目录下新建sources目录,并把下载好的zip包解压在sources里。

以我本机的为例,在E:\Program Files\Android\android-sdk\platforms\android-10下新建sources;

把android-2.3.3-gingerbread-src.zip拷贝到sources下,解压到当前目录。

 

三、修改source.properties相关配置。

以我本机为例C:\Program Files\Android\android-sdk\platforms\android-10\source.properties 修改四个地方,修改后为

[html]  view plain copy
  1. ### Android Tool: Source of this archive.  
  2. #Sun Mar 04 01:51:13 CST 2012  
  3. Layoutlib.Api=4  
  4. Layoutlib.Revision=0  
  5. Pkg.Desc=Android SDK Platform 2.3.3._r2  
  6. Pkg.UserSrc=true ## add by lu7kang -----------1  
  7. Archive.Arch=ANY  
  8. Platform.Version=2.3.3  
  9. ##Pkg.DescUrl=http\://developer.android.com/sdk/  ## delete by lu7kkang---------------2  
  10. Platform.MinToolsRev=8  
  11. Archive.Os=ANY  
  12. ##Pkg.SourceUrl=https\://dl-ssl.google.com/android/repository/repository-5.xml ## delete by luqk ----------3  
  13. Pkg.Revision=2  
  14. AndroidVersion.ApiLevel=10  
  15. Pkg.SourceUrl=sources ## add by lu7kang ---------4  


四、重启eclipse,在android工程里,按ctrl点击类名可以阅读到android2.3的源码了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值