Copy the compiled android4.0 source code package to implement emulator.

Source: Internet
Author: User
Copy the compiled android4.0 source code package to implement emulator.

09:45:24 | category:

Default category | font size subscription

After the download is complete, it mainly includes the following directories:

  1. Abi bionic bootable build CTS Dalvik development device docs external frameworks hardware libcore makefile ndk out packages prebuilt SDK System
Compilation of Android ICS Simulators

The compiling Simulator version is the same as the previous method:

  1. . Build/envsetup. Sh
  2. Lunch SDK-Eng
  3. Make SDK-J2

After compilation, a log file v8.log is added to the working directory ($ top ).

Intermediate problems:
Collect2: LD returned 1 exit status
Make: *** [out/target/product/generic/obj/shared_libraries/libm_intermediates/linked/libm. So] Error 1
Make: *** waiting for unfinished task ....

Search post: http://code.google.com/p/android/issues/detail? Id = 2031 # C0
It is said that the virtual hard disk is not big enough:

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 12g or so. also set the VMware Virtual Memory up to about 2g or more. increase hard disk space

Android ICS simulator startup

The old one:

  1. $ CD out/host/linux-x86/sdks/android-sdk_eng.xxx_linux-x86/tools
  2. $./Android list targets
  3. Available Android targets:
  4. ----------
  5. ID: 1 or "Android-14"
  6. Name: IOS 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. $./Android create AVD-T 1-n ics // t indicates the version number of the created simulator, and N indicates the name of the simulator.
  13. Auto-selecting single Abi armeabi-v7a
  14. The android 4.0 is a basic Android platform.
  15. Do you wish to create a custom hardware profile [No]
  16. Created AVD 'ics 'based on Android 4.0, arm (armeabi-v7a) processor,
  17. With the following hardware config:
  18. HW. LCD. density = 240
  19. VM. heapsize = 24
  20. HW. ramsize = 512
  21. $./Emulator-AVD ICs

So emulator got up:

From: http://qq530694013.blog.163.com/blog/static/2151230462012112632920527/

Related Article

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.