2013年4月26日 星期五

[Android] Android Installation

紀錄一下 Android 的安裝, 讓以後重灌時更方便

1. 主要程式的下載
    1.1  Java
            http://www.oracle.com/technetwork/java/javase/downloads/index.html
    1.2. Eclipse
           http://www.eclipse.org/downloads/
           很多的次版本 , Android developer site 是連結到  Eclipse for Mobile Developer
           安裝完畢會問你的 workspace。 看你的 projects 要放哪裡, 就給個 directory
    1.3 Eclipse Android ADT
           http://developer.android.com/sdk/installing/installing-adt.html#Download
           安裝方法, 到 Help -> Install New Software -> 將下列網址輸入, eclipse 自動會抓取
           http://adt-addons.googlecode.com/svn/trunk/installer/com.android.ide.eclipse.installer.update/




     1.4. Android SDK
           http://developer.android.com/sdk/index.html#download

      到 ADT 裡下載各個版本或是Tools
   

這位孫老師有十分詳盡的步驟 - 如果以上有遇到問題可以參考, 不過其中 eclipse 的版本是使用的是 Java Developers 版本(當時可能沒有 mobile 版本) 我一開始是使用這個版本, 後來改 Google 建議, 使用 Mobile 版本
http://blog.chinatimes.com/tomsun/archive/2010/09/07/536320.html


2. Additional Plug-in
   Android Source Code Plug-in 。 要安裝才可以 trace android library 的 source code。  當然也有其它的方法, 但這個是最簡易的。 安裝方法跟 1.3 一樣, 到 Help->Install New Software 裡, 輸入 plug-in 網址 -
http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/

         
Google 文件 :  http://code.google.com/p/adt-addons/
安裝完後還有個小步驟, 就是指定 source 的 Directory。 這個在Debug 進行中的時候設置。 Debug trace code 到 android source code 時, 顯示 File not found. 使用者按 "Change Attach Source" 就會連結到設定檔。然後指定 source code directory。例如: 我的 Android SDK 是安裝在一個 c:\Android 的 folder 裡。 plug-in 將 source 放置在 C:\Android\sources\ 裡 。以後要更改可以到 Project 右鍵選擇 Properties 裡更改。更改處如下圖 -


安裝 modeling tools
在 Help -> Install New Software 下輸入
Juno - http://download.eclipse.org/releases/juno
下面幾個 plugin 裝一裝, 不確定功用,是參考連結文章的。。。

參考
To make Papyrus0.9.0M6 work in Eclipse Juno 4.2,we need to install other plug-ins below.

  • EMF Facet SDK
  • Operational QVT SDK
  • MoDisco SDK
  • WST XML Core
  • xText SDK
  • OCL Examples and Editors
  • Subversive SVN Team Provider
  • Modisc SDK  (這個是在別處看到的) 



最後在 Help -> Installing Modeling Component 下選擇 Papyrus

pyrus installation and code to uml guide in the middle of page


Modisc reverse 的用法

Alternative : ObjectAid
Download Link : http://www.objectaid.com/update

Remarks

--------------------------------------------------------------------- -------------
安裝程序  Android Doc 說得蠻明白的
----------------------------------------------------------------------------
http://developer.android.com/sdk/index.html
Eclipse IDE
  • Eclipse 3.6.2 (Helios) or greater
    Note: Eclipse 3.5 (Galileo) is no longer supported with the latest version of ADT.
  • Eclipse JDT plugin (included in most Eclipse IDE packages)
  • JDK 6 (JRE alone is not sufficient)
  • Android Development Tools plugin (recommended)
  • Not compatible with GNU Compiler for Java (gcj)
Other development environments
  • JDK 6 (JRE alone is not sufficient)
  • Apache Ant 1.8 or later
  • Not compatible with Gnu Compiler for Java (gcj)
Note: Some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development. 

 -------------------------------------------------------------------------------------------------------------
Apache Ant  Eclipse 已經有內建, 因此不用安裝 , 可以檢查一下。 到 Eclipse 的 File-> export ->General  如下圖所示表已經安裝!

沒有留言:

張貼留言