类似“W/ResourceType( 2888): Unable to get buffer of resource asset file ”这样的错误。是编译sdk的时候设置不正确。
正确的方法是:
在make sdk之前先执行'lunch sdk-eng'或者是:在没有执行过'build/envsetup.sh'的shell终端中直接执行'make PRODUCT-sdk-sdk'
The command is not "./build/envsetup.sh", it's "sourcebuild/envsetup.sh", abbreviated as ". build/envsetup.sh".Without that, the Android lunch command doesn't get added to yourshell and you're falling back to some other command installed on yoursystem that has nothing to do with Android.
在linux下边make的sdk默认是linux版本的,有一个文件里边说明了怎么编译win下的sdk。
在\android\sdk\docs里边howto_build_SDK.txt
里边详细说明了如何编译sdk。包括linux,mac,win下的各种版本。
祝楼主好运~
联系客服