Android 環境搭建 以及 第一個android 程式的編寫,搭建android

來源:互聯網
上載者:User

Android 環境搭建 以及 第一個android 程式的編寫,搭建android

Android 環境搭建

(1)所需材料 eclipse 、ADT 、SDK

 ADT-15.0.0   
android-sdk-windows  
eclipse-jee-helios-win32   
jdk-8u65-windows-x64   http://pan.baidu.com/s/1o7Puo8y

(2)安裝步驟

the first step:安裝ADT

雙擊eclipse,單擊ok

       點擊help->install new software

                    點擊Add 後再點擊 archive 將未解壓的ADT路徑放到Work with裡(如所示)

                       之後進行的勾選

      兩次單擊next後選擇i accept …單擊finish 完成安裝 進行重新啟動eclipse

the second step:安裝SDK

進入到eclipse中

點擊window->preferences->點擊左側介面Android 再選擇右側介面Android 4.0—>在sdk location中將已解壓的sdk放裡()

——-

點擊ok 完成安裝

the third step:安裝 AVD manager

點擊window->AVD manager->new->填寫相關資訊()

點擊create AVD 後出現介面

點擊Launch後即可看到以下介面

編寫hello world 程式

the first step:File->new 選擇new project(如所示)

填寫項目名稱

選擇4.0()

建立包名,進行分割

單擊工程名->res->layout->建立Android XML File

進行編寫如下

在單擊src->com.cvit->預設.java檔案()

T

the second step:製作apk

1)

 

 

 

 

 

 

 

 

 

製作 apk成功將其匯入安卓手機即可使用,

聯繫我們

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