拷貝編譯好的android4.0源碼包,實現emulator

來源:互聯網
上載者:User
拷貝編譯好的android4.0源碼包,實現emulator  

2012-12-27 09:45:24|  分類:

預設分類 |字型大小 訂閱

下載完成後主要包含一下目錄:

  1. abi  bionic  bootable  build  cts  dalvik  development  device  docs  external  frameworks  hardware  libcore  Makefile  ndk  out  packages  prebuilt  sdk  system  
Android ICS 模擬器的編譯

編譯模擬器版本和以前方法一樣:

  1. . build/envsetup.sh  
  2. lunch sdk-eng  
  3. make sdk -j2

編譯完成後工作目錄($TOP)裡增加了一個log檔案 v8.log

中間出問題:
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libm_intermediates/LINKED/libm.so] 錯誤 1
make: *** 正在等待未完成的任務....

搜了篇文章:http://code.google.com/p/android/issues/detail?id=2031#c0
說是虛擬硬碟不夠大:

Resolved.  In VMWare this was due to running out of disk space, and using a pre- built VMWare image.  To fix, create a new VMWare image and set the disk space to be  12 G or so.  Also set the VMWare virtual memory up to about 2G or more.增加硬碟空間吧

Android ICS 模擬器的啟動

還是老一套:

  1. $cd out/host/linux-x86/sdk/android-sdk_eng.xxx_linux-x86/tools  
  2. $./android list targets  
  3. Available Android targets:  
  4. ----------  
  5. id: 1 or "android-14"  
  6.      Name: Android 4.0  
  7.      Type: Platform  
  8.      API level: 14  
  9.      Revision: 2  
  10.      Skins: QVGA, WSVGA, HVGA, WVGA854, WXGA720, WQVGA432, WVGA800 (default), WQVGA400, WXGA800  
  11.      ABIs : armeabi-v7a  
  12.   
  13. $./android create avd -t 1 -n ics  // t是指建立的模擬器的版本號碼,n是指模擬器的名字
  14. Auto-selecting single ABI armeabi-v7a  
  15. Android 4.0 is a basic Android platform.  
  16. Do you wish to create a custom hardware profile [no]  
  17. Created AVD 'ics' based on Android 4.0, ARM (armeabi-v7a) processor,  
  18. with the following hardware config:  
  19. hw.lcd.density=240  
  20. vm.heapSize=24  
  21. hw.ramSize=512  
  22.   
  23. $./emulator -avd ics  

於是 emulator就起來了:

轉自:http://qq530694013.blog.163.com/blog/static/2151230462012112632920527/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.