Mac Need Install Jdk Before Download Android Studio

This guide will show you how to build LÖVE for Android using Android Studio. Android Studio is supported on Windows, Mac, and Linux.

To install Android Studio on your Mac, proceed as follows: Launch the Android Studio DMG file. Drag and drop Android Studio into the Applications folder, then launch Android Studio. Select whether you want to import previous Android Studio settings, then click OK. The Android Studio Setup Wizard guides you though the rest of the setup, which. Review and accept the terms and conditions in the Download Android Studio dialog that appears and click DOWNLOAD ANDROID STUDIO FOR PLATFORM where PLATFORM refers to the operating system of your machine, such as Windows, Mac, or Linux. And, you just have to keep in mind before installing Android Studio, the machine should have JDK installed and a good supply of internet while downloading Android Studio. Also, we would love to hear from you, just comment your query or feedback in the comment box, below.

Install JDK

JDK, or Java SDK, is needed for Android Studio.

Windows or Mac

You can download Java SE Development Kit 8 from the official site here. Just install it like you would any other program.

Linux

You can download OpenJDK 8 from your distribution's package manager.

Ubuntu

Arch Linux

Install and Configure Android Studio

If you haven't already, install Android Studio from here.

Open up the SDK Manager (under configure) and check (if not already checked) the following:

Under SDK Platforms:

  • Android 7.1.1 (Nougat) [API 25]

Under SDK Tools:

  • Android SDK Platform-Tools
  • Android SDK Tools
  • Support Repository -> Android Support Repository
  • NDK

If you're building for LÖVE 0.10.2, use NDK 14b.

Go ahead and apply, and it will take some time to download these packages.

Import love-android-sdl2

If you haven't downloaded love-android-sdl2, do it now.Either you can download the repository as a .zip file from here and extract it, or use git to clone this project.

Next, import the project using the 'Import Project (Gradle, Eclipse, ADT, etc.)' from the 'Welcome to Android Studio' window.

If you get a sync error saying 'Could not find com.android.tools.build:gradle:3.0.1.', go ahead and add the Google Maven Repository and re-sync the project.

Game Packaging and Building

Package the game using according to Game Packaging.

Instead of deploying with Ant, just build the project under Build -> Make Project.

The output apk will be app/build/outputs/apk/debug/app-debug.apk.

Updated

Before You Begin

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

Background

Jdk

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

Mac need install jdk before download android studio windows 10

What Do You Need?

  • A computer that meets the system requirements to install Android Studio. See System requirements at https://developer.android.com/studio/

Install and Set Up Android Studio

Depending on the operating system of your computer, the Android Studio installation wizard prompts you with dialogs where you choose between standard or custom install types. Choose the options recommended by the Android Studio installation wizard as these options include the components that you require to create and install a hybrid mobile application 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 Developer's website at https://developer.android.com/studio/ and click DOWNLOAD ANDROID STUDIO.
  2. Review and accept the terms and conditions in the Download Android Studio dialog that appears and click DOWNLOAD ANDROID STUDIO FOR PLATFORM where PLATFORM refers to the operating system of your machine, 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 start Android Studio.
  4. If you run Android Studio behind a firewall or secure network, an Android Studio First Run dialog appears which displays a button (Setup Proxy) that you click to enter the proxy server settings for your environment. 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 then, in the Create New Project wizard, accept the default options to progress to the final screen in the wizard and click Finish.
  6. This enables the Android Studio toolbar with the options that you need to create an AVD. It also downloads and configures the Gradle build tool that the Android SDK invokes to build the APK file when you complete the creation of your Oracle JET hybrid mobile application.

    If you run Android Studio behind 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 environment to ensure that the Gradle build tool functions correctly.

Download Jdk For Android Studio

Install an Android SDK Platform Package

  1. In the Android Studio toolbar, click the SDK Manager icon () 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 Apply.
  3. Click OK in the confirmation dialog that appears and accept the license agreement to proceed with the installation.
  4. Once the installation completes, click Finish and then click OK to close the Default Settings dialog.

Create and Start an Android Virtual Device

  1. In the Android Studio toolbar, click the AVD Manager icon () and click Create Virtual Device in the Android Virtual Device Manager dialog that opens.
  2. In the Phone category of the Choose a device definition page of the Virtual Device Configuration dialog, select Nexus 5X and click Next.
  3. In the Recommended tab of the Select a system image page, click Download for the Oreo entry with an API Level of 26. The SDK Quickfix Installation wizard opens.
  4. Accept the license agreement to proceed with the download of the system image for Android 8.0 with API Level 26. Once the installation completes, click Finish and then click Next in the Select a system page.
  5. In the Verify Configuration page, review and accept the default settings such as the AVD Name value of Nexus 5X API 26, then click Finish.
  6. In the Android Virtual Device Manager dialog, click the Launch this AVD in the emulator icon () under the Actions column 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.

Install 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/8/docs/technotes/guides/install/toc.html.

Android Studio Jdk Version

Create Environment Variables

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

Android Studio Jdk 8

  1. For Windows.
    • Open the Environment Variables dialog from the System Properties dialog by navigating Control Panel > System and Security > System > Advanced System Settings > Environment Variables.
    • Click New in the Environment Variables dialog and set the values of the variables to the location of the JDK and Android SDK locations, as shown in the following image. You can obtain the Android SDK location from the Android SDK page of the Default Settings dialog that you access in Android Studio by clicking Tools > SDK Manager.
  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.