2013-09-03

Android emulator on Linux

OS : Ubuntu 12.04 32-bit

Install android-sdk
  1. apt-get install libgl1-mesa-dev
  2. apt-get install openjdk-6-jdk
  3. download Android SDK or ADT Bundle form here
  4. unzip android-sdk.zip
  5. export PATH=$PATH:/path/to/tools:/path/to/platform-tools
Update android-sdk
  1. cd android-sdk/tools
  2. ./android update sdk
  3. in the AVD manager, set the update proxy (Tools -> Options)
  4. ./android ( in the AVD manager, new an emulator)
  5. cd adnroid-sdk/tools
  6. ./emulator @emulator-name
Set PATH
  1. echo 'export PATH=$PATH:/new path' >> ~/.bashrc
  2. logout


沒有留言: