install and configure Android St

2016-03-01  本文已影响17人  KokutouDa

Step 1 install java

  1. Download then extract java file (tar -xzvf j.../) and move to /usr/local (sudo mv j.../ /usr/local).
  2. open terminal and type vim /etc/environment
  3. add PATH /usr/local/(java directory)/bin: and
    JAVA_HOME=/usr/local/(java directory) in new line.

if you run on a 64-bit machine, you need to

  sudo dpkg --add-architecture i386sudo 
  apt-get update
  sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

Step 2 install Android Studio

  1. Download then extract files, then move to /usr/local
  2. open terminal then type vim /etc/environment
  3. add SDK_HOME=/usr/local/android-sdk.. in new line
  4. type source /etc/environment in terminal
  5. open android studio from terminal
    cd /usr/local/android-studio/bin && ./studio.sh
  6. add PATH /usr/local/android-sdk../tools:/usr/local/android-sdk../platform-tools: (refer to the Step1 - 2. above)

refer: http://developer.android.com/sdk/installing/index.html?pkg=tools

上一篇下一篇

猜你喜欢

热点阅读