Pages

Monday, February 20, 2012

[Android] Android + Eclipse on Mac

1.Download JDK
  
  developer.apple.com

  Click the 'Resource' at the top bar to find the package suit your os

  install it, we assume the path (JDK)is:

  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands



2. Download Android SDK
   
    http://developer.android.com/sdk/

   Choose the suitable version


   Extract it, here, we assume you put the extracted file under : '/Library/android-sdk-macosx'
  $ cd  /Library/android-skd-macosx/tools
  $ ./android

  Choose those version of Android SDK you wish to develop on, then 'Accept all'


3. Download Eclipse and android ADT plug-in
    http://www.eclipse.org/downloads/

    Install and open Eclipse

    Click Help -> Install New Software...

    Click and 'Add...' button on the right side of 'With with'

    Enter you self-description in Name field, say, 'Android Development Kit (ADT)'
    fill the location filed with: 'https://dl-ssl.google.com/android/eclipse/'

    Install 'Android DDMS' and 'Android Development tools' at least
    (If there are error messages under Win7, try running your eclipse as Administrator)

    Click Eclipse -> Preferences -> Android    and set the SDK location as:
    /Library/android-sdk-macosx

No comments:

Post a Comment