how to install android sdk - tops technologies dehradun

Upload: tops-technologies

Post on 04-Jun-2018

231 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    1/28

    UPDATED - HOW TO INSTALL

    ANDROID SDK By TOPS technologies

    -http://www.tops-int.com

    -http://www.tops-int.com/android-training.html

    T OP

    S T

    e c h n

    ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n

    g pr o

    gr am.

    http://www.tops-int.com/http://www.tops-int.com/android-training.htmlhttp://www.tops-int.com/android-training.htmlhttp://www.tops-int.com/android-training.htmlhttp://www.tops-int.com/android-training.htmlhttp://www.tops-int.com/android-training.htmlhttp://www.tops-int.com/android-training.htmlhttp://www.tops-int.com/http://www.tops-int.com/http://www.tops-int.com/
  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    2/28

    HOW TO INSTALL THE ANDROID DEVELOPMENT TOOLS : A NDROID TRAINING :M ODULE 1

    This Power Point Presentation will describes how toinstall and configure the Android development tools.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    3/28

    CONTENTS : A NDROID TRAINING :M ODULE 1

    1. Installation of the Android development tools 2. Requirements 3. Install Android Developer Tools 4. Install Android SDK version 5. Accessing the Android SDK code in Eclipse 6. Android Studio 7. Updating an Eclipse IDE for Android

    development

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    4/28

    1. I NSTALLATION OF THE ANDROID DEVELOPMENT TOOLS Google provides tools to develop Android applications. You

    can choose between Eclipse or IntelliJ based tools. This guide describes both approaches, but the focus is on the

    Eclipse based tooling. Tip Selecting an IDE is primarily based on personal preferences.

    The team at Google plans to support both the Eclipse as wellas the IntelliJ based tools. The author of this text is a longterm Eclipse user, contributor and committer and therefore

    selects Eclipse as his primary tooling for Androiddevelopment.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    5/28

    2. R EQUIREMENTS

    2.1. System requirements 2.2. Requirements for using a 64-bit Linux 2.3. Linux and OpenGL - Failed to load libGL.so

    T OP

    S T

    e c

    h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    6/28

    2. R EQUIREMENTS

    2.1. System requirements Development for Android can be done on a

    reasonably sized computer. For a nice experience amodern computer is recommended, for example, a2.6 GHz CPU with at least 8 GB of memory. AnSSD speeds up the start of the Android emulatorsignificantly.

    T OP

    S T

    e c

    h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    7/28

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    8/28

    2.3. L INUX AND O PEN GL - F AILED TO LOAD LIBGL. SO

    On Ubuntu 13.04 you also have to install theOpenGL support. This can be done on Ubuntu13.04 via following command.# install OpenGL support sudo apt-get install libgl1-mesa-devPlease check your distribution documentation if youare using a different flavor of Linux.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    9/28

    3. I NSTALL A NDROID DEVELOPER TOOLS

    3.1. Download packaged Android DeveloperToolsGoogle provides a packaged and configured

    Android development environment based on theEclipse IDE called Android Developer Tools . Underthe following URL you find an archive file whichincludes all required tools for Androiddevelopment: Getting the Android SDK .

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

    http://developer.android.com/sdk/index.htmlhttp://developer.android.com/sdk/index.html
  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    10/28

    3. I NSTALL A NDROID DEVELOPER TOOLS

    3.2. Stand-alone ADT installationExtract the zip file and start the Android DeveloperTools (Eclipse) which are located inthe eclipse folder. You can do this by double-clicking on the eclipse native launcher(e.g., eclipse.exe under Windows).

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    11/28

    3. I NSTALL A NDROID DEVELOPER TOOLS

    3.3. Update an existing Eclipse IDESee Section 7, Updating an Eclipse IDE forAndroid development for a description on how toupdate your existing Eclipse IDE to perform Androiddevelopment.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

    http://www.vogella.com/tutorials/AndroidInstallation/article.htmlhttp://www.vogella.com/tutorials/AndroidInstallation/article.htmlhttp://www.vogella.com/tutorials/AndroidInstallation/article.htmlhttp://www.vogella.com/tutorials/AndroidInstallation/article.htmlhttp://www.vogella.com/tutorials/AndroidInstallation/article.htmlhttp://www.vogella.com/tutorials/AndroidInstallation/article.htmlhttp://www.vogella.com/tutorials/AndroidInstallation/article.html
  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    12/28

    4. I NSTALL A NDROID SDK VERSION

    4.1. Using the Android SDK managerThe Android SDK Manager allows you to install specificversions of the Android API. Select Window Android SDKManager from the Eclipse menu or use

    the tools/android program from your Android SDK installation.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

    TipIf you chose thepackaged AndroidDeveloper Tools downloadbased on the Eclipse IDE,the Android SDK is locatedin the sdk folder of the

    extracted archive file.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    13/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    14/28

    4.1. U SING THE A NDROID SDK MANAGER

    The Android SDK Manager allows you to install anddelete Android packages.Select the version of Android you would like todevelop for from the tree and pressthe Install button. The following screenshot showsthe selection for the API 18 version of Android.Refer the previous slidePress the Install button and accept the license forall packages. After the installation is completed,restart the Eclipse IDE.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    15/28

    4.2. I NSTALL SUPPORT LIBRARY

    In the Android SDK Manager select Extras andinstall the Android support library .

    Android currently has several versions of the library,the v4, v7 and v13 version which are valid as of therespective API level of Android. The usage of ahigher version of the support library is typicallybased on the lower version. For example, thesupport for the action bar for Android devices with

    version API 7 is included in the support library v7.This library requires the v4 library, too.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    16/28

    5. A CCESSING THE ANDROID SDK CODE IN ECLIPSE

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai n

    i n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    17/28

    5.1. I NSTALLATION

    During Android development it is useful to haveaccess to the Android source code.You can download the Android source code viathe Android SDK Manager by selecting the Sourcesfor Android SDK .The sources are stored inthe path_to_android_sdk/sources/android-xx directory. where xx is the API level of Android,e.g., 19 for the Android 4.4 version.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai n

    i n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    18/28

    5.2. C ONNECT SOURCE TO YOUR PROJECT

    To connect the sources with the android.jar file inyour Android project, right-click onyour android.jar in the Package Explorer view andselect Properties Java Source Attachment .Select External location and press the ExternalFolder button. Browse tothe path_to_android_sdk/sources/android-xx location and press the OK button.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai n

    i n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    19/28

    5.3. V ALIDATE

    Validate that you can see the Android source code.For example, open the View class via the OpenType dialog (Ctrl+T) and ensure that you see thesource code.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai n

    i n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    20/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai n

    i n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    21/28

    6. A NDROID S TUDIO

    6.1. Android Studio based on IntelliJ IDEAGoogle also provides a modified version of theIntelliJ IDE called Android Studio for developing

    Android applications.6.2. InstallationThis book uses Eclipse for its description, but avery similar functionality is available for AndroidStudio. See Installing Android Studio to learn howto install and use it.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai n

    i n g

    pr o

    gr am.

    http://developer.android.com/sdk/installing/studio.htmlhttp://developer.android.com/sdk/installing/studio.html
  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    22/28

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    23/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    24/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    25/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    26/28

    After the installation of the ADT the Eclipse tooling allows todownload the Android SDK automatically. Alternatively youcan also manually download the Android SDK from the

    Android SDK download page.http://developer.android.com/sdk/index.htmlThe download contains a zip file, which you can extract to anyplace in your file system, e.g., on my Linux system I placed itinto the /home/vogella/android-sdks folder. Avoid using spaces

    in the path name, otherwise you may experience problemswith the usage of the Android SDK.You also have to define the location of the Android SDK in theEclipse Preferences. In Eclipse open the Preferences dialogvia the menu Window Preferences . Select Android and

    enter the installation path of the Android SDK.

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    27/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.

  • 8/13/2019 How to install Android SDK - TOPS Technologies Dehradun

    28/28

    T OP

    S T

    e c h n ol o

    gi e

    s -A n

    d r oi d

    t r ai ni n g

    pr o

    gr am.