編譯android不是那麼好弄的,環境必定要搭建好,特別是android開發站給出的相關依賴包,一個不能少,不然問題一大堆java
內容:python
Java 6: for Gingerbread and newerandroid
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" $ sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner" $ sudo apt-get update $ sudo apt-get install sun-java6-jdk
Java 5: for Froyo and oldergit
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse" $ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse" $ sudo apt-get update $ sudo apt-get install sun-java5-jdk
To set up your development environment, install the following required packages:ubuntu
$ sudo apt-get install git-core 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
執行過程當中不免會遇到一些什麼包老舊啦、不存在啦之類的問題,那麼能夠去http://packages.ubuntu.com/zh-cn/hardy/amd64/lib32readline5-dev/downloadmarkdown
找包,挨個安裝也是版本。雖然高級版本的包比較好使,但因爲開發問題,有些依賴包的版本不符致使包根本沒辦法用,所以就能夠經過自行下載並安裝的方法經過。curl
待續。。。。flex