首页 > 代码库 > (5) 使用 eclipse 阅读源码
(5) 使用 eclipse 阅读源码
eclipse 安装、配置
现在 google 已经停止了对 ADT Bundle 的支持,现在必须分开下载 eclipse、ADT 和 SDK。eclipse 下载地址(luna 4.4.1)
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR1/eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz
安装 ADT
To add the ADT plugin to Eclipse:
- Start Eclipse, then select Help > Install New Software.
- Click Add, in the top-right corner.
- In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.
- Click OK.
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you‘ll see a list of the tools to be downloaded. Click Next.
- Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can‘t be established, click OK.
- When the installation completes, restart Eclipse.
来源: <http://developer.android.com/sdk/installing/installing-adt.html>下载 SDK
http://developer.android.com/sdk/index.html#Other
导入 Android 源码
1、取消 Porject > Build Automatically2、To import the formatter, go to the preferences, section Java > Code Style >formatter, then click on import and choose development/ide/eclipse/android-formatting.xml3、复制 development/ide/eclipse/.classpath 到 Android 源码根目录下。
To import the import order, to go into Java > Code Style > Organize Import, then click on import and choose development/ide/eclipse/android.importorder4、新建 java project,根目录设置为 Android 源码目录,确定,然后就是漫长等待了。5、C++ index 之前注意去除一些没用的目录:external、art 等。
来自为知笔记(Wiz)
(5) 使用 eclipse 阅读源码
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。