Introduction to Android App Development 1 Installing JDK and Android Studio for mac

Until now, I had only done iOS application development, but now that I need to do Android application development, I would like to do it while summarizing the current version in order from installation.

1. Premise

1.1 What to use in Android application development

There are three types used for Android application development: PC, JDK, and Android Studio. I will briefly describe only the outline below, but please refer to the reference URL and other sites for details.

(1) PC connected to the Internet environment

I can develop on mac or windows, but I develop on mac. I don't know about windows, so don't be afraid.

(2) JDK(Java Development Kit) A kit that forms the basis for developing Java. If you put this in, you will be able to do everything from Java compilation to execution. Once installed, you will be able to use Java commands and javac commands in the terminal. By the way, if you just want to run Java, you can add JRE. The JDK is a collection of various things such as JRE to run and other java commands. Reference URL: http://wa3.i-3-i.info/word15006.html

(3) Android Studio Official tool for Android application development recommended by Google. Originally it was developed with a tool called Eclipse + ADT, so there are explanations about Eclipse in old books, but as of November 21, 2017, it is basically developed with Android Studio. Reference URL: https://www.sejuku.net/blog/10531

1.2 Outline of procedure

(1) JDK installation

(2) Android Studio installation

2. Procedure

2.1 Step 1: JDK installation

Regarding the installation of the JDK, I referred to "Install Java (JDK) on Mac", but the installation was completed without any particular trip. I will briefly describe only the steps I took below. When I looked it up later, there was a more detailed site, so it might be better to look there.

(1)Open terminal
(2) 「java -Hit the "version" command and check that java is not installed (I don't remember installing java, so just in case)
(3)Visit the Oracle site and"Accept License Agreement"Check and download the JDK (see * below for the URL)
(4) 「java -Confirm that java is installed with the "version" command

Although there was a description about setting environment variables, I did not set it because the java command worked even if I did not set it (I wonder if it is only for Windows, I need it).

Reference URL: https://eng-entrance.com/java-install-jdk-mac

2.2 Step 2: Install Android Studio

Basically, install while watching Dot installation video.

First, download Android Studio from here. After that, when I put it in the Application folder and start it, the following warning occurs. 警告.png If you ignore and press Open, you will now be asked if you want to import the settings. Since we will not import this time, check Do not import Settings and click OK. CompleteInstallation.png The Welcome screen will appear, so just click Next. SetupWizard.png

You will be asked for Install Type, so just in case, install with Custom Install. Standard is probably okay. InstallType.png

It seems that you can choose the UI, so I chose Darcula and Next. Select UI Theme.png

You will be asked to select the components to install, so I'm not sure, but I'll put them all in. Android SDK is required, so on. Performance (Intel R HAXM) seems to be needed to speed up the Android emulator. Android Virtual Device seems to be an Android virtual device for testing apps on the emulator. SDK Components Setup.png By the way, you can change the location of the Android SDK here, but there was no need to change it, so leave it as it is and Next.

Then Emulator Settings are displayed. It seems that it has detected that the emulator can be executed at high speed. It says that it seems to be the maximum amount of RAM allocated to the emulator instance used by Intel R HAXM, but leave it as Recommended and Next. Emulator Settings.png

Verify Settings will be displayed. If there are no problems, click finish. Verify Settings.png

Downloading Components are quite long, so leave it for a while. On the way, I got the message "HAXM installation is about to make changes", so enter the password and click OK. When Silent installation Pass! Is displayed, you can press Finish, so click Finish. Finish.png

Installation is complete at this point. After that, it feels like playing with it. After installing and writing this article, I found an article [2017 version] Introduction to Android application development starting with Kotlin, so share it. This may be easier to understand because it is a video.

3. Finally

Once installed, that's it for today. Next time, I would like to try building the app from building the emulator to running it.

Recommended Posts

Introduction to Android App Development 1 Installing JDK and Android Studio for mac
Introduction to Android application development
Trial and error to display national holidays in Android app development. Part 2
Riot (chat app) development (settings) in Android Studio
Android app: Try to summarize events and listeners
Plans to support JDK 11 for Eclipse and Spring Boot
Introduction to Android Layout
How to quit Docker for Mac and build a Docker development environment with Ubuntu + Vagrant
App development beginners tried to make an Android calculator app
Introduction to Keycloak development
[Introduction to Android application development] Let's make a counter
Android app to select and display images from the gallery
How to make an app using Tensorflow with Android Studio
Eclipse installation and code completion enhancements (Mac for Java development)
[Mac] Android Studio quits for an unexpected reason during installation
[Android] Change the app name and app icon for each Flavor
ROS app development on Android
Workaround for issues where you are prompted to install the JDK when trying to build from the command line after installing Android Studio
Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin
I tried to create a simple map app in Android Studio
How to use \ t Escape sequences different for mac and Windows-java
Create a JVM for app distribution with JDK9 modules and jlink
[Swift 5] Processing and precautions for transitioning to the iOS settings app
[Android Studio] [For beginners] Let's roughly explain the screen and directories
Android Studio shows only one method for button onClick and Java throws an exception and ruins the app
[Android] Cause and remedy for TransactionTooLargeException
How to install JMeter for Mac
First Android development for busy people
Library collection useful for Android development
Notes for Android application development beginners
Build Java development environment (for Mac)
Problems with android studio development series
Initial introduction to Mac (Java engineer)
iOS App Development Skill Roadmap (Introduction)
Introduction to Programming for College Students: Introduction
The story of releasing the Android app to the Play Store for the first time.
Trial and error to display national holidays in Android application development. Part 1
Kotlin vs. Java: Which Programming Language to Choose for Your Android App