Android SDK tips on Ubuntu./emulator:no such file or directory to resolve

Source: Internet
Author: User

Run Android emulator on the Xen or KVM guest a few days ago to simulate the Android system. The 64-bit Ubuntu 12.10 System was used as guest, and the "-bash:./emulator:no such file or directory" error message was encountered while running emulator or emulator-x86. This error hint is a bit confusing and it's hard to see what's going on. Later, I found out that because the two binaries are 32bit, it relies on some 32bit shared library files, and the 64-bit Ubuntu system just lacks the required 32-bit libraries. So the solution to this problem is to install the 32-bit library with the sudo apt-get install ia32-libs command. In addition, you can use the "LDD Emulator" command to view, emulator executable file said that the dependent shared library, there may be some of the "not found" situation, and then install the corresponding shared library in turn.

The code is as follows Copy Code
linux@ubuntu12.10:~/android-sdk-linux/tools$./EMULATOR-X86-AVD test1
-bash:./emulator-x86:no such file or directory
linux@ubuntu12.10:~/android-sdk-linux/tools$./EMULATOR-AVD test1
-bash:./emulator:no such file or directory

linux@ubuntu12.10:~/android-sdk-linux/tools$ sudo apt-get install ia32-libs

linux@ubuntu12.10:~/android-sdk-linux/tools$ LDD Emulator
Linux-gate.so.1 => (0xf7776000)
Libutil.so.1 =>/lib/i386-linux-gnu/libutil.so.1 (0xf7757000)
Librt.so.1 =>/lib/i386-linux-gnu/librt.so.1 (0xf774e000)
libpthread.so.0 =>/lib/i386-linux-gnu/libpthread.so.0 (0xf7732000)
Libstdc++.so.6 =>/usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7649000)
Libm.so.6 =>/lib/i386-linux-gnu/libm.so.6 (0xf761d000)
Libgcc_s.so.1 =>/lib/i386-linux-gnu/libgcc_s.so.1 (0xf75ff000)
Libc.so.6 =>/lib/i386-linux-gnu/libc.so.6 (0xf7455000)
/lib/ld-linux.so.2 (0xf7777000)


In addition, using KVM-accelerated Android emulator on the x86 platform is really good. Easy to remember a few commands, next time, if used, I can also facilitate the reference.

The code is as follows Copy Code
linux@ubuntu12.10 : ~/android-sdk-linux/tools$./android list targets
Available Android targets:
----------
....
----------
Id:3 or "android-16"
     name:android 4.1
     TYP E:platform
     API level:16
     revision:2
   & nbsp SKINS:HVGA, WXGA800, WSVGA, wxga800-7in, WQVGA432, QVGA, WVGA800 (default), WVGA854, WXGA720, WQVGA400
  &N bsp;  abis:armeabi-v7a, x86
 
linux@ubuntu12.10:~/android-sdk-linux/tools$./android Create Avd-n Te ST1-T 3-b x86
 
linux@ubuntu12.10:~/android-sdk-linux/tools$./EMULATOR-X86-AVD test1-qemu-m E-KVM


Reference to the Android emulator:
Android SDK download address: Http://developer.android.com/sdk/index.html#download
Use of emulator: http://developer.android.com/tools/devices/emulator.html
Command-Line management AVD files: http:// developer.android.com/tools/devices/managing-avds-cmdline.html

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.