ubuntu 编译android

一般情况下如果编译不过很可能是java的版本有问题。我用的是jdk 1.6.0_43
sudo update-alternatives --install /usr/bin/java java /home/ameyume/jdk1.6.0_45/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /home/ameyume/jdk1.6.0_45/bin/javac 300
sudo update-alternatives --install /usr/bin/javadoc javadoc /home/ameyume/jdk1.6.0_45/bin/javadoc 300
sudo update-alternatives --install /usr/bin/javap javap /home/ameyume/jdk1.6.0_45/bin/javap 300
sudo update-alternatives --install /usr/bin/javah javah /home/ameyume/jdk1.6.0_45/bin/javah 300
sudo update-alternatives --install /usr/bin/javaws javaws /home/ameyume/jdk1.6.0_45/bin/javaws 300

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javadoc
sudo update-alternatives --config javah
sudo update-alternatives --config javap
sudo update-alternatives --config javaws

你可能感兴趣的:(ubunutu)