Step 1 install java
- Download then extract java file (
tar -xzvf j.../
) and move to /usr/local (sudo mv j.../ /usr/local
). - open terminal and type
vim /etc/environment
- 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
- Download then extract files, then move to /usr/local
- open terminal then type
vim /etc/environment
- add
SDK_HOME=/usr/local/android-sdk..
in new line - type
source /etc/environment
in terminal - open android studio from terminal
cd /usr/local/android-studio/bin && ./studio.sh
- 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
网友评论