Build Android Environment

Source: Internet
Author: User

Introduction

Long time no touch Android, today re-built an environment, encountered the issue of record download. Used after all.

Installation

Software software has JDK+ECLIPSE+ADT+SDK

The main record is the process of installing ADT and SDK, and note that the version numbers of ADT and SDK are the best.

1.1 Installing ADT Offline

Http://dl.google.com/android/ADT-23.0.2.zip

Installation process: Select Help > Install New Software, in the dialog box that appears, click the Add button, enter "ADT" in the Name field of the dialog, click Archive ... Select the offline ADT file, contact the all update .... Please do not tick.

1.2 Installing the SDK Download SDK

Http://dl.google.com/android/android-sdk_r23.0.2-windows.zip

Configure the Hosts

Find dl-ssl.google.com corresponding IP to join the hosts

64.233.162.86 dl-ssl.google.com

Ping the domain name dl-ssl.google.com, see whether can ping, if can ping pass, the SDK still can't download.

Workaround:

Setting: (Sdk-tools-options)

Use the SDK to download the latest version of the tool

Android SDK Tools 23.0.2 (SDK included, no update required)

Android ADK Platform-tools
Android SDK Build-tools
Extras/android Support Library

Extras/google USB Driver

Download the Android Development Kit using the SDK

Android 4.2.2 generally just download the version of the compiled app.

Ok!

First Android Program

After configuring the SDK in Eclipse

New an Android application

Description

01 Here the minimum version Select 2.2, the system will create a APPCOMPAT_V7 project, the recommended minimum version is 4.0, except for the consideration of compatibility.

23 Version Selection Instructions

Minimum required SDK minimum version, general application use 4.0 (14), cover more use 2.3.3 (10), recommended 14, avoid appcompat_v7 problem.

Target SDK your app supports Android API version up to

Compile with the most appropriate version, native support for your Android version of the app.

Plainly: is the smallest, biggest, and most suitable problem.

Description: Choose empty activity here, choose black,src inside may not mainactivity generated.

Description: The above is the option to create a virtual machine, for informational purposes only.

Configuration error for Android simulator

Error: Panic:could not open AVD config file:c:\users\ jian 梊. Android\avd\2.2.avd\con

environment variable setting android_sdk_home path is not D:\Program files\android\android-sdk for Chinese name.

Build Android Environment

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.