1.安装sdk
?
2.设置权限
sudo chmod a+w /目录/ -R
?
3.设置环境变量
~/.profile???? ~/.bashrc
?
export JAVA_HOME=/home/gxd/soft/jdk1.6.0_23
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export PATH=$PATH:/home/gxd/soft/eclipse
export PATH=$PATH:/home/gxd/soft/android-sdk-linux_86/tools
?
4.刷新配置文件
source ~/.profile
source ~/.bashrc
?
-----------------------------------------------------
?
如果安装的是 Ubuntu 64位系统的话,还需要增加一些东西,这个转自网络
http://www.360doc.com/content/10/1118/15/474846_70436251.shtml
?
sudo apt-get install git-core gnupg flex bision gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev java-common unixodbc
?
之后就可以正常访问 adb 了。