Ubuntu 64 bit 编译 Android

The Android build requires a 32-bit build environment as well as some other tools:

Required Packages: Git, JDK, flex, and the other packages as listed above in the i386 instructions:
JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override. Pieces from the 32-bit cross-building environment

$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev Set the system to use the right version of java by default:

$ sudo update-java-alternatives -s java-1.5.0-sun

注意:32 bit Required Packages 为

git-core gnupg sun-java5-jdk flex bison gperf build-essential zip curl zlib1g-dev  libsdl-dev libesd0-dev libwxgtk2.6-dev  libncurses5-dev  

Ubuntu 64 bit 下的  Required Packages 为 git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

  32bit与64bit下的依赖包 不同之处在于橙色与红色部分

  可能导致错误情况:

bin/bash: 第 0 行: cd: sdk/layoutopt/app/src/resources: 没有那个文件或目录

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwsjgx.html