【转】单独编译android framework模块出现的问题
2015-03-14 23:09
513 查看
原文网址:http://blog.csdn.net/leonan/article/details/8629561
全编andorid后,单独修改编译一个framwork模块,make snod会有如下告警信息:
Warning: with dexpreopt enabled, you may need a full rebuild
使用这样make snod 出来的镜像,内核不能启动,模拟器一直停留在“android”标志状态。
查看log发现有如下错误打印:
DexOpt: mismatch dep signature for '/system/framework/framework.odex
查看makefile有这样的语句
# Enable dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
# 看起来这是一项为了加快第一次启动速度的特性
ifeq (true,$(WITH_DEXPREOPT))
$(warning Warning: with dexpreopt enabled, you may need a full rebuild.)
endif
修改方法1:
build/target/board/generic/BoardConfig.mk
ifeq ($(HOST_OS),linux)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true #把这个改为false
endif
endif
修改方法2:
全编译的时候加载参数
make showcommands WITH_DEXPREOPT=false
这样编译出来的结果,如果以后单独修改打包运行,就不会有上述问题了。
全编andorid后,单独修改编译一个framwork模块,make snod会有如下告警信息:
Warning: with dexpreopt enabled, you may need a full rebuild
使用这样make snod 出来的镜像,内核不能启动,模拟器一直停留在“android”标志状态。
查看log发现有如下错误打印:
DexOpt: mismatch dep signature for '/system/framework/framework.odex
查看makefile有这样的语句
# Enable dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
# 看起来这是一项为了加快第一次启动速度的特性
ifeq (true,$(WITH_DEXPREOPT))
$(warning Warning: with dexpreopt enabled, you may need a full rebuild.)
endif
修改方法1:
build/target/board/generic/BoardConfig.mk
ifeq ($(HOST_OS),linux)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true #把这个改为false
endif
endif
修改方法2:
全编译的时候加载参数
make showcommands WITH_DEXPREOPT=false
这样编译出来的结果,如果以后单独修改打包运行,就不会有上述问题了。
相关文章推荐
- 单独编译android framework模块出现的问题
- android源码模块编译出现的问题
- android下mm模块出现编译错误问题
- 使用android framework源码编译自己apk问题
- 编译android2.3过程中出现问题的解决
- 【COCOS2DX-LUA 脚本开发之十三】解决lua项目编译Android出现get data from file failed以及路径等问题
- ubuntu下编译Android出现的问题 推荐
- android单独模块编译
- ubuntu下编译Android出现的问题 总结
- 关于加入第三方framework编译的出现的问题
- 【COCOS2DX-LUA 脚本开发之十三】解决lua项目编译Android出现get data from file failed、Cocos2dxActivity cannot be 路径等问题
- android编译单独模块时异常提示
- 如何编译Android源码的单独模块
- 编译 Android-2.1出现的问题,和解决方法。
- 编译Android源码时出现的java版本的问题
- ubuntu12.04 64bit编译android ics4.0代码出现的/usr/bin/ld.bfd.real: cannot find 问题解决
- ubuntu12.04 64bit编译android ics4.0代码出现的/usr/bin/ld.bfd.real: cannot find 问题解决
- Android framework中修改或者添加资源无变化或编译不通过问题详解
- 使用mm单独编译android的APP时出现错误