Android/App개발2009. 4. 21. 15:31

G:\_PROJECT\Android\SDK\android-sdk-windows-1.1_r1\docs\sdk\1.1_r1\installing.html

Installing the Android SDK

This page describes how to install the Android 1.1 SDK, Release 1, and set up your development environment. If you haven't downloaded the SDK yet, you can so so from the Download page.

Before you begin, be sure that your development environment meets the SDK System Requirements.

Upgrading?

If you have already developed applications using an earlier version of the SDK, please skip this page and read the Upgrading the SDK document instead.

Installing the SDK

After downloading the SDK, unpack the .zip archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android_sdk_<platform>_<release>_<build>. The directory contains the subdirectories tools/, samples/, and others.

Make a note of the name and location of the unpacked SDK directory on your system — you will need to refer to the SDK directory later, when setting up the Android plugin or using SDK tools.

Optionally, you can add the path to the SDK tools directory to your path. As mentioned above, the tools/ directory is located in the SDK directory.

  • On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
      export PATH=${PATH}:<your_sdk_dir>/tools
  • On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile, if you haven't already set one up on your machine.
  • On Windows, right click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path under System Variables. Add the full path to the tools/ directory to the path.

Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory. Note that, if you update your SDK, you should remember to update your PATH settings to point to the new location, if different.

Setting up Eclipse

If you'll be developing with the Eclipse IDE, follow the following procedure to setup the IDE to use the Android SDK.

Basically, you just need to update your Eclipse preferences to point to the Android SDK directory:

  1. Select Window > Preferences... to open the Preferences panel. (Mac OS X: Eclipse > Preferences)
  2. Select Android from the left panel.
  3. For the SDK Location in the main panel, click Browse... and locate the SDK directory.
  4. Click Apply, then OK.

Done! We now recommend that you install the ADT Eclipse plugin, which will provide some much-appreciated assistance in developing Android apps with Eclipse...

Installing the Eclipse Plugin (ADT)

If you will be using the Eclipse IDE as your environment for developing Android applications, you can install a custom plugin called Android Development Tools (ADT), which adds integrated support for Android projects and tools. The ADT plugin includes a variety of powerful extensions that make creating, running, and debugging Android applications faster and easier. Developing in ADT/Eclipse is highly recommended for Eclipse users and those new to Android.

If you will not be using the Eclipse IDE, you do not need to download or install the ADT plugin. You can still develop Android applications using other tools.

To download and install the ADT plugin, follow the steps below for your respective Eclipse version.

Eclipse 3.3 (Europa) Eclipse 3.4 (Ganymede)
  1. Start Eclipse, then select Help > Software Updates > Find and Install....
  2. In the dialog that appears, select Search for new features to install and click Next.
  3. Click New Remote Site.
  4. In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL:
    https://dl-ssl.google.com/android/eclipse/

    Alternatively, you can use http in the Location URL, if you are having trouble with https (https is preferred for security reasons).

    http://dl-ssl.google.com/android/eclipse/

    Click OK.

  5. You should now see the new site added to the search list (and checked). Click Finish.
  6. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Developer Tools. This will check both features: "Android Developer Tools", and "Android Editors". The Android Editors feature is optional, but recommended. If you choose to install it, you need the WST plugin mentioned earlier in this page. Click Next.
  7. Read the license agreement and then select Accept terms of the license agreement. Click Next.
  8. Click Finish.
  9. The ADT plugin is not signed; you can accept the installation anyway by clicking Install All.
  10. Restart Eclipse.
  1. Start Eclipse, then select Help > Software Updates....
  2. In the dialog that appears, click the Available Software tab.
  3. Click Add Site...
  4. Enter this as the Location:
    https://dl-ssl.google.com/android/eclipse/

    Alternatively, you can use http in the Location URL, if you are having trouble with https (https is preferred for security reasons).

    http://dl-ssl.google.com/android/eclipse/

    Click OK.

  5. Back in the Available Software view, you should see the plugin. Select the checkbox next to Developer Tools and click Install...
  6. On the subsequent Install window, "Android Developer Tools", and "Android Editors" should both be checked. The Android Editors feature is optional, but recommended. If you choose to install it, you need the WST plugin mentioned earlier in this page. Click Next.
  7. Accept the license agreement and click Finish.
  8. Restart Eclipse.

Troubleshooting ADT Installation

If you are having trouble downloading the ADT plugin after following the steps above, here are some suggestions:

  • If Eclipse can not find the remote update site containing the ADT plugin, try changing the remote site URL to use http, rather than https. That is, set the Location for the remote site to:
    http://dl-ssl.google.com/android/eclipse/
  • If you are behind a firewall (such as a corporate firewall), make sure that you have properly configured your proxy settings in Eclipse. In Eclipse 3.3/3.4, you can configure proxy information from the main Eclipse menu in Window (on Mac, Eclipse) > Preferences > General > Network Connections.

If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT files to your local machine using a browser and the install the files in Eclipse from there:

  1. Download the ADT zip file (do not unpack it).
  2. Follow steps 1 and 2 in the default install instructions (above).
  3. In Eclipse 3.3, click New Archive Site....
    In Eclipse 3.4, click Add Site..., then Archive...
  4. Browse and select the downloaded the zip file.
  5. Follow the remaining procedures, above, starting from steps 5.

Note that to update your plugin, you will have to follow these steps again instead of the default update instructions.

Note that the "Android Editors" feature of ADT requires several optional Eclipse components (for example, WST). If you encounter an error when installing ADT, your Eclipse installion might not include those components. For information about how to quickly add the necessary components to your Eclipse installation, see the troubleshooting topic ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".

For Linux users

If you encounter this error when installing the ADT Plugin for Eclipse:

An error occurred during provisioning.
Cannot connect to keystore.
JKS

...then your development machine lacks a suitable Java VM. Installing Sun Java 6 will resolve this issue and you can then reinstall the ADT Plugin.

Installation Notes

Ubuntu Linux Notes

  • If you need help installing and configuring Java on your development machine, you might find these resources helpful:
  • Here are the steps to install Java and Eclipse, prior to installing the Android SDK and ADT Plugin.
    1. If you are running a 64-bit distribution on your development machine, you need to install the ia32-libs package using apt-get::
      apt-get install ia32-libs
    2. Next, install Java:
      apt-get install sun-java6-bin
    3. The Ubuntu package manager does not currently offer an Eclipse 3.3 version for download, so we recommend that you download Eclipse from eclipse.org (http://www.eclipse.org/ downloads/). A Java or RCP version of Eclipse is recommended.
    4. Follow the steps given in previous sections to install the SDK and the ADT plugin.

Other Linux Notes

  • If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed at the top of this page. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.
Posted by 삼스
Android/Porting2009. 4. 20. 10:54
http://kelp.or.kr/korweblog/stories.php?story=08/11/20/8615396



Posted by 삼스
Android/Porting2009. 4. 20. 10:47
http://www.kandroid.org/board/board.php?board=toolchain&command=body&no=11

android 1.0 전체소스의 컴파일용도로 사용하기 위한 Kandroid Toolchain Ver. 20081022 을 릴리즈 합니다.
구글에 의해  릴리즈된 툴체인에 비해 페도라 및 우분투를 모두 안정적으로 지원하며, 툴체인의 디버깅을
위해서 Stripping 하지 않고 만들어진 이른바 칸드로이드 툴체인입니다.  향후 아래의 "Final Goal"의 작업이
완료되어 좀더 다양한 목적으로 사용가능한 툴체인으로 성장시킬 계획입니다.

                                     Last Modified on Nov-13-2008


1. Final Goal
 - Fedora 배포판 개발자들이 툴체인 사용에 문제가 없도록 지원하도록 한다.
   (현재 구글의 안드로이드는 공식적으로 우분투를 지원하고 있음.)
 - 툴체인의 최근 피쳐를 적용하도록 한다.
 - 소스컴파일이 좀더 편리하게 필요 라이브러리를 내장하도록 한다.
 - 컴파일 되는 바이너리 최적화 및 경량화
 - 컴파일러파일들은 no stripped으로 보존하도록 한다.
 - arm v5T 이상 아키텍쳐에 대한 지원을 완전하게 지원하도록 한다.
 - Etc

2. 버젼확인 방법
 f9#> cd /opt/
 f9#> wget  http://www.kandroid.org/devtools/kandroid-toolchain-for.android.1.0.20081022.tgz (Binary-41M)
 f9#> tar xzf kandroid-toolchain-for.android.1.0.20081022.tgz
 f9#> cd ./kandroid-toolchain-for.android.1.0.20081022
 f9#> ./bin/arm-kandroid-eabi-gcc --version [enter]


3. Etc
  - 최종적인 작업이 완료되면 http://kat.sourceforget.net을 통해 다운로드를 제공하는 형태로 제공될수도 있습니다.
     (Kat : Korea Android Toolchain for Korean )
Posted by 삼스