Install Android SDK on 64-bit Ubuntu

Source: Internet
Author: User
I recently encountered an incomprehensible problem when installing the Android Development Environment on Ubuntu64bit. After installing the AndroidSDK, run the adb command in terminal (path already set ), the path cannot be found, as follows: bash:/home/kangqi/android/android-sdk-linux_x86/platform-tools/adb: Nosuchfileordirectory

I recently encountered an incomprehensible problem when installing the Android Development Environment on Ubuntu 64bit. After installing the Android SDK, run the adb command in terminal (path already set ), the path cannot be found, as shown below:

Bash:/home/kangqi/android/android-sdk-linux_x86/platform-tools/adb: No such file or directory

At last, I saw a foreign guy who had encountered the same problem on google and solved the problem perfectly. I would like to repeat the Chinese translation here. Source: Jayway Team Blog

The problem is that there is no 32-bit lib for Android in 64-bit ubuntu. You can download the getlibs tool to obtain the 32-bit library. After installation, run the following command in the platforms/android-1.6/tools directory:

Getlibs aapt

Then, the 32-bit package program of the corresponding library will be installed, and the final result will be OK.

Hope to help you

In addition:

Install a 32-bit Library

Because it is a 64-bit ubuntu and does not install a 32-bit library, the android simulator cannot be created,

Enter the sudo apt-get install ia32-libs in the terminal, which may fail to be installed, update it with sudo apt-get update, and try again several times.

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.