2012年3月18日 星期日

說說。安裝android

安裝android需要幾個重要的東西,要注意我們用的電腦是32位元還是64位元的喔:

  1. Java JDK(Java SE Development Kit ),我們需要這個才能使用Java的開發環境。
    1. 注意喔!如果只是想運行Java環境的遊戲,只要安裝JRE就可以了喔!
    2. 然後,這是Java最新的API,參考參考很重要。
  2. Eclipse,是一個很強大的IDE。
    注意如果要開發Java的話(廢話),要選Eclipse IDE for Java Developers或是Eclipse IDE for Java EE Developers這兩個,後者比較完整,企業級的吼。
  3. Android SDK,這是核心啦!看你的電腦是什麼系統的便安裝哪個唄。
  4. ADT套件。是說Eclipse要安裝就要先裝上這個套件。
    以下是安裝說明
    1. Start Eclipse, then select Help > Install New Software....
    2. Click Add, in the top-right corner.
    3. 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/
    4. Click OK
      Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
    5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
    6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
    7. Read and accept the license agreements, then click Finish.
      Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
    8. When the installation completes, restart Eclipse.
這裡有網路空間分享的Eclipse,是已經安裝了ADT套件的。 

下載安裝ADT完了,最後一個步驟便是設定SDK啦!設定的方法
  1. Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
  2. Select Android from the left panel.
  3. You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.
  4. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
  5. Click Apply, then OK.

以上。巴拉巴拉。

沒有留言:

張貼留言

你好,我是小書,如果文章內容有錯誤,或是看到有建議以及任何感想時,歡迎提出分享,我們一起學習一起努力。

追蹤者