eclipse開發android,添加源碼

來源:互聯網
上載者:User

eclipse下開發android很方便,jdk/eclipse/adt/android sdk逐個安裝配置即可。

android sdk沒源碼,很多時候is提示會卡(從網上找提示結果?不知為何,總之很卡。。)

另外,沒源碼的話,超連結跟過去啥都沒有。也不太習慣。所幸android是開源的,還是下源碼吧!

 

android開發時git(分布式的,據說linus花了一周寫出來的。。餓,時間不是問題,問題是它很好用很快有其是linux下!)維護的。

所以完全可以通過git擷取和提交源碼。地址:http://android.git.kernel.org/

 

我安裝了1.5/1.6/2.1/2.2/2.3的SDK,源碼包沒在官網找到,但是網上有人已經打包好了按地址下載即可:

1.5地址:http://rgruet.free.fr/public/android-1.5-cupcake-src.zip

1.6地址:http://devfrustrated.com/devBlog/wp-content/uploads/2010/07/sources_1.6.zip2.0地址:http://rgruet.free.fr/public/android-2.0-eclair-src.zip2.1地址:http://devfrustrated.com/devBlog/wp-content/uploads/2010/07/sources_2.1.zip2.2地址:http://devfrustrated.com/devBlog/wp-content/uploads/2010/07/sources_2.2.zip懶得去一個個檔案得了,還是打包下載來的方便。解壓好,可以放到sdk/platform對應的版本下。然後在eclipse裡就能跟蹤代碼了。參考:http://www.devfrustrated.com/devBlog/browsing-android-source-code-in-eclipse/如果是linux下的話,得一個指令碼工具:http://android.git.kernel.org/repo從git://android.git.kernel.org/platform/manifest.git進行同步即可。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.