Chinaunix首页 | 论坛 | 博客
  • 博客访问: 235775
  • 博文数量: 25
  • 博客积分: 643
  • 博客等级: 上士
  • 技术积分: 359
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-03 13:18
文章分类

全部博文(25)

文章存档

2017年(1)

2013年(1)

2012年(7)

2011年(16)

分类: 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".

阅读(9849) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~