1、编译环境的安装:

ubuntu 14.04
sudo apt-get install bison g++-multilib git gperf libxml2-utils make python-networkx zlib1g-dev:i386 zip


ubuntu 12.04
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so


ubuntu 10.04 -- 11.10
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc

On Ubuntu 10.10:
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so

On Ubuntu 11.10:
sudo apt-get install libx11-dev:i386

 

2、代码比较工具:

    sudo apt-get install meld

    或者去Ubuntu软件中心下载

 

3、配置adb目录到系统环境变量:

如果adb使用有异常,加入环境变量如下:

在/home/username/.bashrc最后一行加入
PATH=/adb目录:$PATH

4、如果用Build_evn编译的时候出现如下错误,可能是python版本太高的原因,比如我的python默认是2.7版本,

      安装python3.5并将默认python版本switch为3.5就会报如下错误。 解决版本是直接卸载python3.5或切换到默认2.7版本。

      Building with Jack: out/target/common/obj/APPS/Amigo_Calendar-gionee_intermediates/with-local/classes.dex
          File "build/tools/normalize_path.py", line 25
           print os.path.normpath(p)
             ^
         SyntaxError: invalid syntax