从官方得到所需的资料
check for some installing information here##
http://developer.android.com/sdk/installing.html
有一点需求,在终端可以这样查看
check glibc version##
/lib/libc.so.6
安装JDK的各种方法
install jdk##
(1)use the Ubuntu software center to install openjdk6
(2)sudo apt-get install sun-java6-jdk##
sudo-i ( login as root )
add-apt-repository"deb http://archive.canonical.com/ lucid partner"
logout
sudo apt-get update
sudo apt-get install sun-java6-jdk
(wait a long time )
(3)sudo apt-get install openjdk-java6-jdk##
(4)well, I try other methods hard, but with Ubuntu, it's useless##
![](http://hi.csdn.net/attachment/201108/9/0_1312897644uavz.gif)
把Eclipse移到一个文件夹
move eclipse to a fold##
sudo mv eclipse /usr/local/
安装安卓的DDMS和ADT
insall Android DDMS and Adroid Development Tools (eclipse-help-install new software)##
https://dl-ssl.google.com/android/eclipse/
在Eclipse里设置Android的路径
add android to eclipse (windows-preferences-Android-SDKLocation:/usr/local/android-sdk)##
在网上找到的一个bug,我没遇到过
Java libjvm.so and SELinux error##
chcon-t textrel_shlib_t /path/to/jre/lib/i386/client/libjvm.so
把android-sdk移到一个文件夹
move android-sdk to a fold##
sudo mv android-sdk /usr/local/
设置android的环境变量
android environment variables Configuration##
sudo gedit ~/.bashrc
export PATH=/usr/local/android-sdk/tools:/usr/local/eclipse:$PATH ( add to last, saveand exits )
source~/.bashrc
启动android模拟器
setup a emulator##
see what do you get#
android list
create an AVD#
android create avd -n your-avd-name -t your-targets
sample#
android create avd -n geek -t 1
check if it's succesed#
emulator @geek -show-kernel
下面是在红帽上手动装JDK的过程
{##
#youcan install JDK in this way, I have try, try hard with Ubuntu, but failed atlast. I have to give up. Shame!
#sucesswith rehat linux root
#firstof all, download JDK( here I download jdk-6u26-linux-i586-rpm.bin ) fromsun.com
#andthen change dir
#moveyour JDK to home fold ( some where else as you like )
mv/home/download/jdk-6u26-linux-i586-rpm.bin /home/
#goto home fold
cd/home/
#checkyour permission of JDK, make sure you have the permission to excute it
ls-l
#excuteJDK
shJDK
#[tab][tab]
#check,yes,yes,enter
cd/home
chomd+x jdk
shjdk
vi/etc/profile
#(add some information to profile )
#setjava enviroment
JAVA_HOME=/usr/java/jdk1.6.0_26
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
exportJAVA_HOME CLASSPATH PATH
vi/etc/profile.d/java.sh
#(this java.sh make sure all of the users can use this JDK )
JAVA_HOME=/usr/java/jdk1.6.0_26
CLASSPATH=.:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
exportJAVA_HOME CLASSPATH PATH
chmod755 /etc/profile.d/java.sh
#checkjava_home, etc
echo$JAVA_HOME
echo$CLASSPATH
echo$PATH
#checkthe JDK intalltion
java-version
##}
在Windows上的安装
Android developing environment withwindows
( morerefers to Android developing environment inLinux )
downloadJDK from oracle.com##
http://www.oracle.com/technetwork/java/javase/downloads/index.html
extractJDK to a fold##
maybeyou will get an executable file like jdk-6u26-windows-i586.exe, run it##
environmentvariables Configuration##
Computor-properties-Advancedsystem settings-Environment Variables-new System variables
variablename:JAVA_HOME
variablevalue:( sample )C:\Program Files\Java\jdk1.5.0_14
newSystem variables
variablename:classpath
variablename:%JAVA_HOME%/lib/rt.jar;%JAVA_HOME%/lib/tools.jar;
findsystem variable "path", edit
%JAVA_HOME%/bin;( add to first )
checkjava version, cmd##
java-version
downloadAndroid SDK from developer.android.com##
environmentvariables Configuration##
variablename:SDK_HOME
variablevalue:( sample )D:\programmefile\android-sdk
findsystem variable "path", edit
%SDK_HOME%\tools;( add to first )
checksdk, cmd##
android