install and configure Android Studio in Ubuntu

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容