开发 Android 应用程序 ,在Eclipse 中关联android 源代码

1.下载到Android源代码;

http://rgruet.free.fr/public/


android-1.5-cupcake-src.zip 04-Oct-2009 03:07 21.6M
android-1.6_r1-donut-src.zip 04-Oct-2009 03:02 22.9M
android-2.0-eclair-src.zip 21-Nov-2009 01:21 24.4M
android-2.1-eclair-src.zip 06-Jul-2010 13:08 30.2M
android-2.2-froyo-src.zip 06-Jul-2010 12:59 33.4M

2.修改android-sdk-windows 修改 source.properties 文件;

如我的2.2版本的android-sdk-windows安装路径为:D:/android/android-sdk-windows/

找到 source.properties 在D:/android/android-sdk-windows/platforms/android-8 路径下

修改如下:

1 ### Android Tool : Source of this archive .
2 #Thu Oct 14 14 : 32 : 47 CST 2010
3 Pkg . Desc = Android SDK Platform 2 . 2_r1
4 Pkg . UserSrc = true
5 Archive . Arch = ANY
6 Platform . Version = 2 . 2
7 ##Pkg . DescUrl = http/ : // developer.android.com/sdk/
8 Pkg . DescUrl = sources
9 Archive . Os = WINDOWS
10 ##Pkg . SourceUrl = https/ : // dl-ssl.google.com/android/repository/repository.xml
11 Pkg . SourceUrl = sources
12 Pkg . Revision = 2
13 AndroidVersion . ApiLevel = 8

第4行,7行,10行,

将代码拷贝到D:/android/android-sdk-windows/platforms/sources 路径下;

sources 目前需要你新建;

重新打开Eclipse ,你发现已经可以关联源代码了。

更多相关文章

  1. android屏幕旋转在framework中的修改。
  2. android 开发环境搭建
  3. android截屏
  4. android头文件路径
  5. 如何修改android开机启动默认横竖屏
  6. Android利用Ksoap2连接webservice 源码
  7. 启动 flutter项目时报Could not find com.android.tools.build:g
  8. Android通过Uri获取文件的路径的方法
  9. 操作内存卡的常用代码

随机推荐

  1. Android shape属性
  2. android使Activity背景透明、模糊
  3. Android — get MEID
  4. Android Timer 更好方法
  5. bsh for android : 北京
  6. Could not find com.android.tools.build
  7. Android无法导入下载好的项目(和Eclipse中
  8. Android edittext刚进入页面取消焦点
  9. Android(安卓)数据库文件 db 的备份和重
  10. Android lint 检查提示汇总