【轉】單獨編譯android framework模組出現的問題

來源:互聯網
上載者:User

標籤:

原文網址: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

這樣編譯出來的結果,如果以後單獨修改打包運行,就不會有上述問題了。

【轉】單獨編譯android framework模組出現的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.