"Go" to compile an issue with the Android framework module separately

Source: Internet
Author: User

Original URL: http://blog.csdn.net/leonan/article/details/8629561

After the full-Andorid, a framwork module is modified separately, make Snod will have the following warning message:
Warning:with dexpreopt enabled, you could need a full rebuild

With this make Snod image, the kernel does not boot, and the emulator remains in the "Android" flag State.
View log found with the following error printing:
Dexopt:mismatch dep signature for '/system/framework/framework.odex

See makefile has such a statement
# Enable Dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
# It looks like it's a feature to speed up the first boot speed
Ifeq (true,$ (with_dexpreopt))
$ (Warning Warning:with dexpreopt enabled, you could need a full rebuild.)
endif

Modify Method 1:
Build/target/board/generic/boardconfig.mk


Ifeq ($ (host_os), Linux)
Ifeq ($ (with_dexpreopt),)
With_dexpreopt: = True #把这个改为false
endif
endif

Modify Method 2:
Load parameters at full compile time
Make Showcommands With_dexpreopt=false

This compiles the result, if later separately changes the package to run, will not have the above problem.

"Go" to compile an issue with the Android framework module separately

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.