banner



How To Install Android Developer Tools

section 0Before You lot Begin

This xv-minute tutorial shows you how to install Android Studio, which includes the Android SDK, and create an Android Virtual Device (AVD) on which y'all install an Oracle JavaScript Extension Toolkit (Oracle JET) hybrid mobile application during a later tutorial. The time to consummate doesn't include processing fourth dimension as a result of your activities.

Background

The Oracle JET control-line interface invokes the Android SDK that yous install with Android Studio to build an Android application package (APK) file from the source files of your hybrid mobile awarding. This APK file is installed on an AVD to enable you to examination the hybrid mobile application.

What Do Y'all Need?

  • A computer that meets the arrangement requirements to install Android Studio. Run across System requirements at https://programmer.android.com/studio/

section 1Install and Set Up Android Studio

Depending on the operating system of your reckoner, the Android Studio installation wizard prompts yous with dialogs where y'all choose between standard or custom install types. Choose the options recommended by the Android Studio installation wizard every bit these options include the components that y'all require to create and install a hybrid mobile awarding on an AVD. They also include an Android emulator and an emulator accelerator appropriate for your computer, be that Windows, Mac, or Linux.

  1. Go to the Download page for Android Studio on the Android Programmer's website at https://developer.android.com/studio/ and click DOWNLOAD ANDROID STUDIO.
  2. Review and accept the terms and atmospheric condition in the Download Android Studio dialog that appears and click DOWNLOAD ANDROID STUDIO FOR PLATFORM where PLATFORM refers to the operating system of your auto, such as Windows, Mac, or Linux.
  3. Go to the Install Android Studio guide at https://developer.android.com/studio/install and follow the instructions for your operating system to install and kickoff Android Studio.
  4. If y'all run Android Studio behind a firewall or secure network, an Android Studio Beginning Run dialog appears which displays a button (Setup Proxy) that you click to enter the proxy server settings for your surround. This allows Android Studio to complete the download of the components for a standard install.
  5. In the Welcome to Android Studio dialog, select Start a new Android Studio project, and so, in the Create New Project sorcerer, take the default options to progress to the final screen in the sorcerer and click Stop.
  6. This enables the Android Studio toolbar with the options that you need to create an AVD. It as well downloads and configures the Gradle build tool that the Android SDK invokes to build the APK file when you consummate the creation of your Oracle JET hybrid mobile awarding.

    If y'all run Android Studio backside a firewall or secure network, a Proxy Settings dialog appears that enables you to configure proxy settings for the Gradle build tool that Android Studio downloads and configures. Provide the proxy settings for your surround to ensure that the Gradle build tool functions correctly.


section 2Install an Android SDK Platform Package

  1. In the Android Studio toolbar, click the SDK Director icon (Android SDK Manager) to open the Android SDK page in the Default Settings dialog.
  2. In the SDK Platforms tab, select Android 8.0 (Oreo) with an API Level value of 26, and click Utilise.
    Description of sdkmgrdialog.png follows
    Description of the analogy sdkmgrdialog.png
  3. Click OK in the confirmation dialog that appears and have the license understanding to keep with the installation.
  4. Once the installation completes, click Finish and and so click OK to close the Default Settings dialog.

section 3Create and Get-go an Android Virtual Device

  1. In the Android Studio toolbar, click the AVD Director icon (AVD Manager) and click Create Virtual Device in the Android Virtual Device Manager dialog that opens.
  2. In the Phone category of the Cull a device definition folio of the Virtual Device Configuration dialog, select Nexus 5X and click Next.
  3. In the Recommended tab of the Select a organisation epitome page, click Download for the Oreo entry with an API Level of 26.
    Description of downloadoreo.png follows
    Description of the analogy downloadoreo.png
    The SDK Quickfix Installation sorcerer opens.
  4. Accept the license agreement to proceed with the download of the arrangement image for Android 8.0 with API Level 26. Once the installation completes, click Stop and so click Side by side in the Select a system page.
  5. In the Verify Configuration page, review and have the default settings such as the AVD Name value of Nexus 5X API 26, so click Finish.
  6. In the Android Virtual Device Manager dialog, click the Launch this AVD in the emulator icon (Emulator Start Icon) under the Deportment cavalcade for the newly-created Nexus 5X API 26 AVD.

    The Android emulator starts and loads the Nexus 5X API 26 AVD. A toolbar appears to the right of the AVD that provides UI controls to interact with the AVD.

  7. Description of android-avd.png follows
    Description of the analogy sdkmgrdialog.png

section 4Install the Java SE Development Kit 8

  1. Go to the Java SE Development Kit 8 Downloads page at http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, accept the license agreement, and download the Java SE Development Kit installation file for your platform.
  2. Follow the JDK installation instructions for your platform at https://docs.oracle.com/javase/eight/docs/technotes/guides/install/toc.html.

section 5Create Environment Variables

To function correctly, the Apache Cordova command-line interface that the Oracle JET control-line interface communicates with requires that you configure environment variables. These surround variables reference the installation location of the Android SDK that is installed by Android Studio and the Coffee SE Development Kit 8.

  1. For Windows.
    • Open the Environs Variables dialog from the System Properties dialog by navigating Command Panel > Arrangement and Security > System > Avant-garde Organisation Settings > Surroundings Variables.
    • Click New in the Environs Variables dialog and set up the values of the variables to the location of the JDK and Android SDK locations, as shown in the following epitome. You tin can obtain the Android SDK location from the Android SDK page of the Default Settings dialog that you admission in Android Studio by clicking Tools > SDK Manager.
      Description of envvar.png follows
      Clarification of the illustration envvar.png
  2. For Mac and Linux-type systems, the settings depend upon your default shell. For example, on a Mac system using the Bash shell, add the following lines in ~/.bash profile.
    consign JAVA_HOME=/Development/jdkInstallDir/ export ANDROID_HOME=/Development/android-sdk/                

Source: https://docs.oracle.com/en/middleware/developer-tools/jet/tutorials/jetma/index.html

Posted by: mcdonaldforefird.blogspot.com

0 Response to "How To Install Android Developer Tools"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel