How to install Android SDK In ubuntu (including failed to fetch URL https://dl-ssl.google.com/error solution)

Source: Internet
Author: User
Install Android SDK on Ubuntu 11.10x64

Operating System: Ubuntu 11.10x64

Ubuntu 11.10 x64 has built-in openjdk-6-jre

Objective: To install the android SDK Java

Install the 32-bit Library File

Because some programs in the android SDK are 32-bit, a 32-bit library file must be installed in the Ubuntu x64 system to be compatible with 32-bit programs. If the installation is not performed, ADB will encounter an error: Java. Io. ioexception: Error = 2

sudo apt-get install ia32-libs
Install Android SDK

Download Android SDK Linux

Http://developer.android.com/sdk/index.html

Decompress the package to obtain the Android-SDK-Linux directory.

Tar-zxvf android-sdk_r15-linux.tgzcd Android-SDK-Linux/ECHO tools/Android is Java software, because the system comes with JRE, so can run .. /Tools/androidecho select adroid SDK platform-tools, Android 4.0, and install the SDK online. Download the SDK for a while. ECHO to link sudo ln-S/home/user1/downloads/Android-SDK-Linux/tools/Android/usr/bin/sudo ln-S/home/user1/downloads/android -SDK-Linux/platform-tools/ADB/usr/bin/

If an error occurs: failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: Java. Security. cert. certificateexception: no name matching dl-ssl.google.com found

Solution:

Settings-check force https://...sources to be fetched using http ://

Sudo VI/etc/hosts

203.208.46.100 dl.google.com

203.208.46.100 dl-ssl.google.com


ADB identifies Android devices (mobile phones, tablets, etc)

Android devices: system settings-Application-unknown sources. Select this option.

Android devices: system settings-application programs-Development-USB debugging. Select this option.

Android devices connect to your computer through USB cables.

adb devices

If the display list of devices attached ???????????? No permissions indicates that the device cannot be identified. modify the configuration to identify the device. The steps are as follows.

lsusb

The device manufacturer ID is displayed. For example, bus 002 device 003: Id 0bb4: 0ccf high tech Computer Corp. indicates that the vendor ID is 0bb4.

sudo vi /etc/udev/rules.d/51-android.rules

Enter the vendor ID, for example, 0bb4.

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ODE="0666", GROUP="plugdev"
sudo chmod a+r /etc/udev/rules.d/51-android.rulessudo service udev restartandroid update adb

Unplug the device and connect it again.

adb devices

If the display is normal, you can.

Create an android Virtual Device AVD

If you do not have an Android phone or tablet, you can run it on the android virtual machine.

android

Tools-> Manager avds-> New

Handwritten Hello World

Todo

References:

Http://developer.android.com/sdk/installing.html

:

Tags: Ubuntu, Android

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.