build/core/java.mk 33: *** cts/apps/CtsVerifier: Invalid LOCAL_SDK_VERSION 'current' Choices are: .

刚刚编译4.4.2的源代码时遇到
build/core/java.mk 33: * cts/apps/CtsVerifier: Invalid LOCAL_SDK_VERSION ‘current’ Choices are: . stop. 的错误

我代码是同事给我的git仓库地址,他说他上传的时候遗漏了某些代码。

我在网上查找答案

网上查找解决方法:You can 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”.

我肯定用不了repo,我断定应该是prebuilts目录不完整。于是从同事复制他能编译过去的prebuilts目录。然后重新编译,最终消除了这个报错。

你可能感兴趣的:(Android开发异常汇总)