Rover12421's Blog

The End.

Android 4.2.2_r1 编译sdk错误解决

        编译Android 4.2.2_r1的源码非常的顺利,不过在编译sdk的时候遇到点错误,记录下.

make: *** [out/target/common/docs/online-gcm-ref-timestamp] Error 45

        这是一个被确认的bug,并且已经在库中修正,查看补丁信息:

        在该页面上可以看到解决办法就是回到上次正确版本:

cd frameworks/base
git revert 5f9922d7c3bce158e4c7a58929d4075e7c91e32e

couldn’t locate source file: system/app/GpsLocationTest.apk
couldn’t locate source file: system/app/***********.apk

        显示找不到一堆的apk,解决方法是:

source build/envsetup.sh
lunch sdk-eng

       重新make sdk一次,正常得到了sdk:

Package SDK: out/host/linux-x86/sdk/android-sdk_eng.rover12421_linux-x86.zip
ll out/host/linux-x86/sdk/android-sdk_eng.rover12421_linux-x86.zip
-rw-rw-r– 1 rover12421 rover12421 440457541 Jun 30 00:31 out/host/linux-x86/sdk/android-sdk_eng.rover12421_linux-x86.zip

Comments