我成功下载了
Android 4.0.3的源代码.
但我无法在我的机器上编译它.
但我无法在我的机器上编译它.
我的机器配置是UBUNTU 11.10 64位,4 GB RAM
当我运行午餐命令时收到以下错误.
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied build/core/config.mk:268: *** Error: could not find jdk tools.jar,please install JDK6,which you can download from java.sun.com. Stop. ** Don't have a product spec for: 'full' ** Do you have the right repo manifest?
JDK已经在路径中.当我运行命令java -version时,我正在关注OutPut
java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02,mixed mode)
任何人都可以帮助继续吗?
解决方法
如果检查脚本build / core / find-jdk-tools-jar.sh,则可以看到它首先检查名为ANDROID_JAVA_HOME的环境变量.如果将ANDROID_JAVA_HOME环境变量设置为JDK路径,则应修复此错误.