Android Studio 初體驗

來源:互聯網
上載者:User

標籤:android   style   blog   http   color   使用   

        Google在I/O2013大會上公布了Android新的開發工具Android Studio,趁周末時間做了一下嘗試。有須要的能夠

在http://developer.android.com/sdk/installing/studio.html下載,目前的版本號是V0.1。官方解釋:Android Studio is a

 new Android development environment based on IntelliJ IDEA. Similar to Eclipse with the ADT Plugin。

       Android Studio 和Eclipse+ADT還是非常類似的,所以eclipse轉移過去是沒有難度的。


Android Studio是基於IntelliJ IDEA,除了IntelliJ功能,Android Studio還提供:

  • 基於Gradle的構建支援;
  • Android特定重構和高速修複;
  • 提示工具更好地對程式效能、可用性、版本號碼相容和其它問題進行控制捕捉;
  • 支援ProGuard和應用簽名功能;
  • 內建布局編輯器,能夠讓你拖放UI組件,並在多個螢幕配置上預覽布局,等等。


      Android Studio提供了Windows、Mac OS X、Linux版本號碼,使用者依據自己的系統選擇下載。


      下載完安裝請參考:http://developer.android.com/sdk/installing/studio.html#Installing


安裝完畢,開啟Android Studio,


第一次使用,New Project時可能會報:

Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.

       這須要你使用新的SDK,曾經在Eclipse使用習慣了android SDK、ADT等,如今僅僅需進入到eclipse更新SDK就可以。或者找到SDK檔案夾下的SDK Manager.exe升級。

      升級完畢,通過Android Studio的例如以下路徑設定SDK,Configure--> Project Defaults --> Project Structure,例如以



設定完畢就能夠建立項目了.建立項目:



設定表徵圖:


選擇不同的Activity,上面的步驟和Eclipse一樣。



建立的project結構例如以下,這樣就簡單的建立了project。


參考:

http://developer.android.com/sdk/installing/studio.html;


/*** @author 張興業*  http://blog.csdn.net/xyz_lmn*  我的新浪微博: @張興業TBOW*  android開發進階群:241395671*/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.