The right method to compile android SDK from source code
2009-09-24 17:34
585 查看
前段时间在用make sdk编译android sdk的时候,发现生成的sdk在build android相关项目的时候总是报告一堆错误,都是由类似“W/ResourceType( 2888): Unable to get buffer of resource asset file
”这样的错误引起的。郁闷了好长时间都没有彻底解决(通过覆盖android.jar包中的resource.arsc虽然可以解决这个问题,但是总感觉有点不满意。),最近终于找到了原因,是编译sdk的时候设置不正确。
正确的方法是:
在make sdk之前先执行'lunch sdk-eng'或者是:在没有执行过
'build/envsetup.sh'的shell终端中直接执行
'make PRODUCT-sdk-sdk'.如此问题基本搞定。
”这样的错误引起的。郁闷了好长时间都没有彻底解决(通过覆盖android.jar包中的resource.arsc虽然可以解决这个问题,但是总感觉有点不满意。),最近终于找到了原因,是编译sdk的时候设置不正确。
正确的方法是:
在make sdk之前先执行'lunch sdk-eng'或者是:在没有执行过
'build/envsetup.sh'的shell终端中直接执行
'make PRODUCT-sdk-sdk'.如此问题基本搞定。
相关文章推荐
- (OK) how to compile the source code for Android-x86 (Android 7.1.1)
- Android: How to download the latest zip Android Source Code easily and using it in Intellij
- How to rebuild assemblies from the source code
- Using Eclipse to compile Android source code
- Solution to "The breakpoint will not currently be hit. The source code is different from the original version."
- android 打包出错 Unable to build:the file dx.jar was not loaded from the SDK folder
- How to build the Robotics Library from source code on Windows
- 【Android】Unable to build: the file dx.jar was not loaded from the SDK folder 错误
- (OK) Android-x86 —— compile the source code —— VirtualBox
- Android启动模拟器,遇到Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- how to download the source tree for a specific Android code-line
- How to Compile Qt from Source Code on Linux
- How to get Mokee Android N source code for Oneplus One Bacon device?
- Unable to build: the file dx.jar was not loaded from the SDK folder
- 同步、更新、下载Android Source & SDK from 国内镜像站
- How to compile and debug VLC player source code in eclipse IDE on Ubuntu 10.04 (lucid)?
- The source file is different from when the module was built. Would you like the debugger to use it anyway?
- Eclipse运行Android项目提示sdk\build-tools\26.0.0\lib\dx.jar Unable to build: the file dx.jar was not loade
- eclipse异常报错:Unable to build: the file dx.jar was not loaded from the SDK folder
- Import STL libraries to the Android NDK code