全部博文(25)
分类: LINUX
2012-02-03 09:47:22
编译ICS时遇到
build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.以及其类似的错误:
user@Ubuntu1004:~/omap3/ics-google-re/mydriod$ make
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.3.0.2.0.1.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
/bin/bash: line 0: cd: cts/tools/cts-native-xml-generator/src/res: No such file or directory
build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.
解决:
first try: "rm -rf prebuilt ; repo sync -l prebuilt"
If that's still not enough: "rm -rf prebuilt ; repo sync prebuilt"
If that's still not enough and you have a solid internet connection:
"rm -rf prebuilt .repo/projects/prebuilt.git ; repo sync prebuilt".