Linux下AS环境配置

sudo gedit /etc/profile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#set jdk environment
#jdk1.7.0_25 jdk1.8.0_101
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_101
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

#set android environment
export ANDROID_HOME=/home/jerry/Softwares/android-sdk-linux
export PATH=$PATH:/home/jerry/Softwares/android-sdk-linux/tools/
export PATH=$PATH:/home/jerry/Softwares/android-sdk-linux/platform-tools/

#set maven environment
export M2_HOME=/home/jerry/Softwares/myEclipse/apache-maven-3.3.9
export PATH=$M2_HOME/bin:$PATH

#set tomcat environment
export TOMCAT_HOME=/home/jerry/Softwares/myEclipse/apache-tomcat-7.0.72
export CATALINA_HOME=$TOMCAT_HOME
export PATH=$TOMCAT_HOME/bin:$PATH

快捷方式
sudo gedit /usr/share/applications/Studio.desktop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Desktop Entry]
Name = Studio
Comment= android studio
Exec=/home/young/android/android-studio/bin/studio.sh
Icon=/home/young/android/android-studio/bin/idea.png
Terminal=false
Type=Application

[Desktop Entry]
Type=Application
Name=Android Studio
Exec=~/Softwares/android-studio/bin/studio.sh %f
Icon=~/Softwares/android-studio/bin/studio.png
Categories=development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio