在使用linux下面默认选项build出来的SDK作开发时候,出现了以下问题:
...Unable to get buffer of resource asset file
解决办法是将build sdk
时候的product该为sdk,有两种方法:
1. 使用lunch更改配置:
cd ~/android/src . build/envsetup.sh lunch sdk-eng make sdk
配置之后的结果是:
============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=1.6 TARGET_PRODUCT=sdk TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR=false TARGET_BUILD_TYPE=release TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=Donut ============================================
2. 直接用make参数:
make PRODUCT-sdk-sdk
参考资料:
1. http://osdir.com/ml/android-platform/2009-01/msg00153.html
2. http://blog.csdn.net/winner82/archive/2009/09/24/4589660.aspx
转自:http://mmmyddd.freeshell.net/blog/Computer/Android/buildlinuxsdk