Ubuntu environment configuration records: (4) configure the sdk and sdk Environment Variables

Source: Internet
Author: User

Ubuntu environment configuration records: (4) configure the sdk and sdk Environment Variables
1. installation and configuration
1) download the sdk
Official http://developer.android.com/sdk/index.html
Select android-sdk_r12-linux_x86.tgz


2) decompress the sdk
The decompressed path is/home/developer/android/android-sdk-linux_x86 (note: the path can be arbitrarily specified .)


3) Configure Environment Variables
Enter
Sudo gedit ~ /. Bashrc


Append the following text at the end of the file
# Set path for android sdk tools
Export PATH = $ PATH:/your_android-sdk-linux_path/tools/
Export PATH = $ PATH: // your_android-sdk-linux_path/platform-tools/


4) Save the update
Source ~ /. Bashrc


2. FAQs
1) the device does not have permission
If you run adb directly
Adb devices
* Daemon not running. starting it now *
* Daemon started successfully *
List of devices attached
???????????? No permissions


Solution:
Switch to root
Adb kill-server
Adb start-server


2) There is no file or directory
Bash:/home/kaizen/developer/android/sdk/platform-tools/adb: the file or directory does not exist.
This is because the adb program in the Android SDK is 32-bit. A 32-bit library file must be installed in the Ubuntu x64 System for 32-bit programs.


Solution:
Enter
Sudo apt-get install ia32-libs
Failed to install adt for eclipse When configuring the sdk environment for linux ubuntu

Android ???
Update failed.
It seems that google's ssl website has been attacked.
We recommend that you update the package from the Internet and then manually update it.
In the first half of the year, I have also done android applets, that is, under ubuntu

How to configure the SDK for linux ubuntu

I don't know what SDK you mean.

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.