|
This page describes how to install the Android SDK and set up your development environment for the first time.
이 페이지는 어떻게 안드로이드 SDK를 설치하고 처음으로 당신의 개발 환경을 어떻게 세팅해야하는지 설명하고 있다.
If you encounter any problems during installation, see the Troubleshooting section at the bottom of this page.
설치하는 동한 당신이 어떤 문제가 발생하면, 이페이지의 맨 밑에 있는 Troubleshooting 섹션을 봐라.
If you already have an Android SDK, use the Android SDK and AVD Manager tool to install updated tools and new Android
당신이 이미 안드로이드 SDK가 설치되어 있다면, 당신의 현재 (컴퓨터)환경안에서 업데이트된 툴들과 새로운 안드로이드
platforms into your existing environment. For information about how to do that, see Adding SDK Components
플랫폼을 설치하기위해 안드로이드 SDK랑 AVD 미니저 툴을 사용해라.이것에 대한 자세한 정보를 위해 Adding SDK Components를 방문하라.
1단계. 당신의 개발 컴퓨터를 조사해라.
Before getting started with the Android SDK, take a moment to confirm that your development computer meets
안드로이드 SDK를 설치하기 전에, 잠깐 시간내서 당신 개발 컴퓨터가 시스템 요구조건(권장사항)에 합당한지
the System Requirements. In particular, you might need to install the JDK, if you don't have it already.
확인해라. 특히, 당신이 JDK 설치가 필요할 수도 있으나 만약 이밎 JDK가 설치되어있다면 다시 설치할 필요는 없다.
If you will be developing in Eclipse with the Android Development Tools (ADT) Plugin—the recommended path if you are
안드로이드 개발툴인 ADT 플러그인을 사용해서 이클립스안에서 개발 할꺼라면--그 추천된 경로?? 만약 당신이 안드로이드가
new to Android—make sure that you have a suitable version of Eclipse installed on your computer (3.4 or newer is
처음이라면 당신에 컴퓨터에 설치된 이클립스버전이 3.4또는 그 이상인지 확인해라.)
recommended). If you need to install Eclipse, you can download it from this location:
만약 당신이 이클립스 설치가 필요하다면 당신은 이 경로에서 다운을 받으면 된다..
http://www.eclipse.org/downloads/
For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.
이클립스 3.5 또는 그이상의 버전을 위해 "Eclipse Classic"버전을 추천한다. 다른 경우라면, 자바 또는 이클립스의 RCP 버전을 추천한다.
2단계. SDK 스타터 패키지 다운로드하기
The SDK starter package is not a full development environment—it includes only the core SDK Tools, which you can use to
SDK 스타터 패키지는 모든 개발 환경을 갖고 있지 않다. 그것은 오직 핵심 SDK 툴만 포함되어있고, 그것을 이용해 너는 SDK
download the rest of the SDK components (such as the latest Android platform).
컴포넌트들의 레스트들을 다운로드 할수 할수있다.(최근의 안드로이드 플랫폼 처럼..)
If you haven't already, get the latest version of the SDK starter package from the SDK download page.
이미 SDK가 준비되어 있지 다면 최신 버전의 SDK 스타터 패키지를 SDK download page부터 다운 받아라.
If you downloaded a .zip
or .tgz
package (instead of the SDK installer), unpack it to a safe location on your machine. By
너가 zip또는 tgz패키지(SDK 인스톨러 대신..) 다운 받았다면 컴퓨터에 압축을 풀고, 기본 적으로
default, the SDK files are unpacked into a directory named android-sdk-<machine-platform>
.
그 SDK파일은 android-sdk-<machine-platform> 디렉토리 안에 압축이 풀릴 것이다.
If you downloaded the Windows installer (.exe
file), run it now and it will check whether the proper Java SE Development Kit
너가 만약 윈도우용 인스톨러(.exe 파일)을 다운 받았다면, 지금 바로 설치하고 자바 SE 개발 도구가 잘 설치되어있는지 확인해라.
(JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).
그리고 자바 SE 버전이 잘 설치되었다면, SDK툴들을 기본적으로 제공하는 위치에 설치해라(당신이 원하는 곳에 설치해도 된다).
Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later,
이름 노트를 만들고(뭐지;?) 너의 컴퓨터에 있는 SDK 디렉토리 경로를 적어놔라. 너는 앞으로 ADT 플러그인을 세팅 할때랑 커맨드
when setting up the ADT plugin and when using the SDK tools from command line.
라인으로 SDK 툴을 사용할 때 이 경로가 필요할 것이다.
3단계. 이클립스를 위한 ADT플러그인 설치하기
Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a
안드로이드는 이클립스 IDE를 위해 사용자 플러그인을 제공하며, 그것은 ADT라 불러지며, 강력하고 통합된 안드로이드 개발 환경을
powerful, integrated environment in which to build Android applications. It extends the capabilites of Eclipse to let you quickly
제공한다. ADT는 이클립의 능력을 확장시켜준다. 어떤 능력이냐하면 새로운 안드로이드 프로젝트들을 빠르게 세팅 할수 있고,
set up new Android projects, create an application UI, debug your applications using the Android SDK tools, and even export
응용프로그램의 UI를 만들수 있고, 안드로이드 SDK 툴들을 이용해 당신의 응용프로그램들을 디버깅 할수있고, 심짐어는 당신이
signed (or unsigned) APKs in order to distribute your application. In general, developing in Eclipse with ADT is a highly
만든 응용프로그램을 배포하기 위해 서명된(또는 서명되지 않은) APK들을 추출하게 해준다. 일반적으로, ADT를 이용해서
recommended approach and is the fastest way to get started with Android.
이클립스안에서 개발하는것은 가장 추천하는 방법이고 이것은 안드로이드를 시작하는데 가장 빠른 방법이다.
If you'd like to use ADT for developing Android applications, install it now. Read Installing the ADT Plugin for step-by-step
당신이 안드로이드 응용프로그램 개발하는것을 위해 ADT를 사용하길 원한다면, 지금 그것을 설치해라. 한단계씩 설치 방법을
installation instructions, then return here to continue the last step in setting up your Android SDK.
배우기 위해 Installing the ADT Plugin를 읽고, 그리고 여기로 다시돌아와 안드로이드 SDK세팅을 위해 최근 했던 단계부터
If you prefer to work in a different IDE, you do not need to install Eclipse or ADT, instead, you can directly use the SDK tools to
진행해라. 만약 당신이 다른 통합 개발환경(이클립스,VC같은게 통합개발환경이죠..)에서 개발하길 원한다면, 당신은 ADT또는 이클립스
build and debug your application. The developer guide has more information about Developing in Other IDEs.
를 설치할 필요가 없으며, 대신, 당신은 빌드를 위한 SDK 툴들과 당신의 응용프로그램 디버깅을 다이렉트(직접)로 사용할 수 있다.
4단계. 플랫폼과 다른 컴포넌트 추가하기.
The last step in setting up your SDK is using the Android SDK and AVD Manager (a tool included in the SDK starter package) to
당신의 SDK를 세팅하기 위한 최근에 했던 단계는 당신의 개발 환경(개발할 컴퓨터)에 필수 SDK 컴포넌트들을 다운하기 위해
download essential SDK components into your development environment.
안드로이드 SDK와 AVD 매니저(SDK 스타터 팩키지안에 포함된 툴)를 사용한다.
The SDK uses a modular structure that separates the major parts of the SDK—Android platform versions, add-ons, tools,
그 SDK는 일련의 별도로 설치가능한 컴포넌트들안에서 SDK의 중요 부분으로 분리된 구조화된 모듈러(안드로이드 플래폼 버전,
samples, and documentation—into a set of separately installable components. The SDK starter package, which you've already
add-ons, 툴들, 샘플, 그리고 문서들)를 사용한다. 그 SDK 스타터 팩키지는 당신이 이미 다운로드 하였고, 거기엔 오직 하나의
downloaded, includes only a single component: the latest version of the SDK Tools. To develop an Android application, you also
컴포넌트만이 포함되어있다:SDK 툴들의 최신 버전(번역이 정말 알아 먹을 수가 없네요..). 안드로이드 응용프로그램 개발을 위해,너는
need to download at least one Android platform and the SDK Platform-tools (tools that the latest platform depend upon). However,
또한 최소한 안드로이드 플랫폼과 SDK 플랫폼(신뢰된 가장 최신버전의 플랫폼의 툴들)을 다운로드하는 것이 필요하다. 하지만,
downloading additional components is highly recommended.
추가적인 컴포넌트들을 다운로드하는 것을 추천한다.
If you used the Windows installer, when you complete the installation wizard, it will launch the Android SDK and AVD Manager
당신이 윈도우용 인스톨러를 사용했다면, 당신이 설치마법사를 완료했을 때, 그것은 안드로이드 SDK와 AVD매니저는 기본적인
with a default set of platforms and other components selected for you to install. Simply click Install to accept the recommended
플랫폼들과 당신이 설치를 위해 선택한 다른 컴포넌트들과 함께 시작될 것이다. 추천된 컴포넌트들과 그것을 설치하기 위해 단순히
set of components and install them. You can then skip to Step 5, but we recommend you first read the section about the
Install을 클릭한다. 당신은 다음 단계에 있는 5단계(Step 5)를 안 읽고 뛰어넘을수 있지만, 안드로이드 SDK와 AVD 매니저(관리자)로
Available Components to better understand the components available from the Android SDK and AVD Manager.
부터 이용가능한 컴포넌트들에 대한 섹션을 잘 이해할수 있도록 Available Components에 있는 내용을 한번이라도 읽기를 추천한다.
You can launch the Android SDK and AVD Manager in one of the following ways:
아래 방법중 한가지를 선택하여 안드로이드 SDK랑 AVD 매니저를 시작할 수 있다.
SDK Manager.ext
file at the root of the Android SDK directory.tools/
directory in the Android SDK, then execute: android
To download components, use the graphical UI of the Android SDK and AVD Manager, shown in Figure 1, to browse the SDK
그림 1처럼 Android SDK and AVD Manager의 그래픽 UI를 사용하여 컴포넌트를 다운로드 하려면, SDK목록이 진열된 브라우저에서
repository and select new or updated components. The Android SDK and AVD Manager will install the selected components in
새로나온거나 업데이트된 컴포넌트들을 선택하라. Android SDK and AVD Manager는 선택된 컴포넌트들을 당신의 SDK환경에다가
your SDK environment. For information about which components you should download, see the following section about
설치를 할 것이다. 당신이 다운로드해야하는 컴포넌트들에대한 정보를 위해, 아래에 있는 추천된 컴포넌트들(Recommended Components.)에 대한 섹션을 봐주 길 바란다.
사용가능한 컴포넌트들
By default, there are two repositories of components for your SDK: Android Repository and Third party Add-ons.
기본적으로, 거기에는 당신의 SDK설치를 위한 2가지 컴포넌트 분류가 있다:Android Repository랑 Third party Add-ons
The Android Repository offers these types of components:
Android repository는 이러한 종류의 컴포넌트들을 제공한다:
<sdk>/tools/
directory of your SDK and read more about them in the Tools section of the developer guide. <sdk>/platform-tools/
directory. Read more about them in the Tools section of the developer guide. The Third party Add-ons provide components that allow you to create a development environment using a specific Android external library (such as the Google Maps library) or a customized (but fully compliant) Android system image. You can add additional Add-on repositories, by clicking Add Add-on Site.
The SDK repository contains a range of components that you can download. Use the table below to determine which components you need, based on whether you want to set up a basic, recommended, or full development environment:
Environment | SDK Component | Comments |
---|---|---|
Basic | SDK Tools | If you've just installed the SDK starter package, then you already have the latest version of this component. The SDK Tools component is required to develop an Android application. Make sure you keep this up to date. |
SDK Platform-tools | This includes more tools that are required for application development. These tools are platform-dependent and typically update only when a new SDK platform is made available, in order to support new features in the platform. These tools are always backward compatible with older platforms, but you must be sure that you have the latest version of these tools when you install a new SDK platform. | |
SDK platform | You need to download at least one platform into your environment, so that you will be able to compile your application and set up an Android Virtual Device (AVD) to run it on (in the emulator). To start with, just download the latest version of the platform. Later, if you plan to publish your application, you will want to download other platforms as well, so that you can test your application on the full range of Android platform versions that your application supports. | |
+ | ||
Recommended (plus Basic) |
Documentation | The Documentation component is useful because it lets you work offline and also look up API reference information from inside Eclipse. |
Samples | The Samples components give you source code that you can use to learn about Android, load as a project and run, or reuse in your own app. Note that multiple samples components are available — one for each Android platform version. When you are choosing a samples component to download, select the one whose API Level matches the API Level of the Android platform that you plan to use. | |
Usb Driver | The Usb Driver component is needed only if you are developing on Windows and have an Android-powered device on which you want to install your application for debugging and testing. For Mac OS X and Linux platforms, no special driver is needed. | |
+ | ||
Full (plus Recommended) |
Google APIs | The Google APIs add-on gives your application access to the Maps external library, which makes it easy to display and manipulate Maps data in your application. |
Additional SDK Platforms | If you plan to publish your application, you will want to download additional platforms corresponding to the Android platform versions on which you want the application to run. The recommended approach is to compile your application against the lowest version you want to support, but test it against higher versions that you intend the application to run on. You can test your applications on different platforms by running in an Android Virtual Device (AVD) on the Android emulator. |
Once you've installed at least the basic configuration of SDK components, you're ready to start developing Android apps. The next section describes the contents of the Android SDK to familiarize you with the components you've just installed.
For more information about using the Android SDK and AVD Manager, see the Adding SDK Components document.
Once you've installed the SDK and downloaded the platforms, documentation, and add-ons that you need, we suggest that you open the SDK directory and take a look at what's inside.
The table below describes the full SDK directory contents, with components installed.
Name | Description | ||
---|---|---|---|
add-ons/ |
Contains add-ons to the Android SDK development environment, which let you develop against external libraries that are available on some devices. | ||
docs/ |
A full set of documentation in HTML format, including the Developer's Guide, API Reference, and other information. To read the documentation, load the file offline.html in a web browser. | ||
platform-tools/ |
Contains development tools that may be updated with each platform release (from the Android SDK Platform-tools component). Tools in here include adb , dexdump , and others others that you don't typically use directly. These tools are separate from the generic development tools in the tools/ directory, because these tools may be updated in order to support new features in the latest Android platform, whereas the other tools have no dependencies on the platform version. | ||
platforms/ |
Contains a set of Android platform versions that you can develop applications against, each in a separate directory. | ||
<platform>/ |
Platform version directory, for example "android-1.6". All platform version directories contain a similar set of files and subdirectory structure. | ||
data/ |
Storage area for default fonts and resource definitions. | ||
images/ |
Storage area for default disk images, including the Android system image, the default userdata image, the default ramdisk image, and more. The images are used in emulator sessions. | ||
skins/ |
A set of emulator skins available for the platform version. Each skin is designed for a specific screen resolution. | ||
templates/ |
Storage area for file templates used by the SDK development tools. | ||
tools/ |
This directory is used only by SDK Tools r7 and below for development tools that are specific to this platform version—it's not used by SDK Tools r8 and above. | ||
android.jar |
The Android library used when compiling applications against this platform version. | ||
samples/ |
Sample code and apps that are specific to platform version. | ||
tools/ |
Contains the set of development and profiling tools that are platform-independent, such as the emulator, the AVD and SDK Manager, adb, ddms, hierarchyviewer and more. The tools in this directory may be updated at any time (from the Android SDK Tools component), independent of platform releases, whereas the tools in platform-tools/ may be updated based on the latest platform release. | ||
SDK Readme.txt |
A file that explains how to perform the initial setup of your SDK, including how to launch the Android SDK and AVD Manager tool on all platforms | ||
SDK Manager.exe |
Windows SDK only. A shortcut that launches the Android SDK and AVD Manager tool, which you use to add components to your SDK. |
Optionally, you might want to add the location of the SDK's tools/
and platform-tools
to your PATH
environment variable, to provide easy access to the tools.
Adding both tools/
and platform-tools/
to your PATH lets you run command line tools without needing to supply the full path to the tool directories. Depending on your operating system, you can include these directories in your PATH in the following way:
tools/
and platform-tools/
directories to the path. ~/.bash_profile
or ~/.bashrc
file. Look for a line that sets the PATH environment variable and add the full path to the tools/
and platform-tools
directories to it. If you don't see a line setting the path, you can add one: export PATH=${PATH}:<sdk>/tools:<sdk>/platform-tools
.bash_profile
and proceed as for Linux. You can create the .bash_profile
if you don't already have one. Once you have completed installation, you are ready to begin developing applications. Here are a few ways you can get started:
Set up the Hello World application
Following the Hello World tutorial is an essential first step in getting started with Android development.
Learn about Android
Explore the development tools
Follow the Notepad tutorial
Following the Notepad tutorial is an excellent second step in getting started with Android development.
Explore some code
<sdk>/samples/<platform>/
. Visit the Android developer groups
ia32-libs
package using apt-get:
: apt-get install ia32-libs
apt-get install sun-java6-jdk