How to Install Eclipse ADT, Android SDK, and setup AVD Emulator

来源:互联网 发布:北欧风 知乎 编辑:程序博客网 时间:2024/05/17 23:20

Steps:

1. Get Eclipse (I use Eclipse 3.7 – Indigo), download from:

  • Eclipse.org or EclipseSource (cloud download – a lot faster!!! :D )

2. Get Android SDK, run the installation:

  • After the installation, run the SDK Manager
  • Check “Tools” and the Android version you’re going to develop.

3. Install the Eclipse ADT (Android Development Tools) Plugin:

  • Run Eclipse
  • Click Help > Install New Software
  • Click Add, copy the following to the Location input: https://dl-ssl.google.com/android/eclipse/
  • Check “Developer Tools” and follow the rest of installation wizard.

4. After restarting the Eclipse, check if the ADT picks-up the SDK directory correctly:

  • Run Eclipse
  • Click Windows > Preferences
  • Click Android on the left sidebar.

5. Create the emulator:

  • Run the Eclipse.
  • Go to Window > AVD Manager.
  • Click “New” button.
  • Fill the fields:

Name: em31
Target: Android 3.1 – API Level 12
SD Card size: 64 MB
Snapshot: enabled
Hardware:
Device ram size: 768

  • click “Create AVD”.
  • The new AVD should appear in the AVD Manager, click “Start” button to run it.

*It takes time to start the AVD, in my machine it takes 7 mins.