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.
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.
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
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
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. 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. The Welcome screen will appear, so just click Next.
You will be asked for Install Type, so just in case, install with Custom Install. Standard is probably okay.
It seems that you can choose the UI, so I chose Darcula and Next.
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. 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.
Verify Settings will be displayed. If there are no problems, click finish.
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.
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.
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