Introduction to kotlin for iOS developers ①-Environment construction

As the title suggests, I'm writing this article with the hope that it will be an opportunity for people who can develop iOS to some extent to start working on kotlin.

kotlin is cute kotlin

So let's get ready. Note) Basically, Mac users are assumed. If you are in a windows environment, please read as appropriate.

Java installation

Anyway, I have to do this. So, first, let's check if Java is installed in the Mac you are currently using.

First, let's open a command prompt. javac -version Enter. If Java is installed javac 1.8.0_121 It will be displayed. (The version is as of March 7, 2017.) If you see anything else, go download it. http://www.oracle.com/technetwork/java/javase/downloads/index.html

If you move from the above link, you will see this screen. スクリーンショット 2017-03-07 18.58.55.png The link on the left side of the large image that says "Java DOWNLOAD" will take you to the download screen.

スクリーンショット 2017-03-07 18.59.17.png Then, download the one that suits your environment from the "Java SE Development Kit" on this screen. Be sure to switch the check to "Accept License Agreement" before pressing the link. If you forget this, you will get angry as follows. スクリーンショット 2017-03-07 18.59.54.png

Well, this time it's a Mac user assumption, so select "Mac OS X". Then download-> unzip-> install as you normally would.

When you're done, check your Java version again at the command prompt. It is a buzz that the number of versions is displayed safely.

Install Android Studio

Next, let's install Android Studio, which is the development environment. In fact, there are several other Android development environments. (In famous places, eclipse etc.) So there is no reason to stick to Android Studio, but in my opinion, I think Android Studio is better than it is now. The weight of the emulator, which was fatal, was greatly improved in 2016, so now you can develop it relatively easily with just one Android Studio. (However, it should not be compared with Xcode)

So let's download it immediately. AndroidStudio スクリーンショット 2017-03-07 19.20.59.png

Don't think about anything, just press "Download Android Studio" in the center of the screen. Then, a license confirmation pop-up will appear. Check the check box and press "Download Android Studio for Mac". スクリーンショット 2017-03-07 19.21.19.png Then download again-> unzip-> install.

Thank you for saying "I don't need kotlin, I'll call it in Java". From here, it is the introduction of kotlin.

Install kotlin

First start Android Studio to install kotlin. You will see a screen that looks like you saw it in Xcode. スクリーンショット 2017-03-07 19.34.33.png

I want to create a project, but now I have to install kotlin first, so be patient and first open "Android Studio"-> "Preferences" in the upper bar. If you select Plugins from the left sidebar, you will see this screen. スクリーンショット 2017-03-07 19.38.04.png Enter "kotlin" in the search at the top center of the screen. Then the kotlin plugin will appear, so let's install it.

Thank you for your hard work. Now you have an environment to use kotlin. From the next time onward, let's actually start development.

Please also include other articles

Introduction to kotlin for iOS developers ①-Environment construction Introduction to kotlin for iOS developers (2) -Project creation Introduction to kotlin for iOS developers ③-About gradle Introduction to kotlin for iOS developers ④-Type [Introduction to kotlin for iOS developers ⑤-Practical XML] (http://qiita.com/parappa1002/items/867c5b30055312e74fdb) [Introduction to kotlin for iOS developers ⑥-kotlin creation] (http://qiita.com/parappa1002/items/9f898feb4f83e672b384)

Recommended Posts

Introduction to kotlin for iOS developers ①-Environment construction
Introduction to kotlin for iOS developers ⑥-Kotlin creation
Introduction to kotlin for iOS developers ④-Type
Introduction to kotlin for iOS developers ⑤-Practical XML
Introduction to kotlin for iOS developers ③-About gradle
Introduction to kotlin for iOS developers ②-Project creation
Introduction to Metabase ~ Environment Construction ~
Introduction to Robot Battle with Robocode (Environment Construction)
Road to Java Engineer Part1 Introduction & Environment Construction
Introduction to batch files (for statements, arrays, deferred environment variables)
Environment construction for Servlet application development
Environment construction with Docker for beginners
Kotlin Class to send to Java developers
Introduction to Programming for College Students: Introduction
[Java & SpringBoot] Environment Construction for Mac
Generics of Kotlin for Java developers
Introduction to java for the first time # 2
Introduction to Programming for College Students: Variables
Jekyll super introduction starting from 0 # 1 --Environment construction
Kotlin scope functions to send to Java developers
Interoperability tips with Kotlin for Java developers
Needed for iOS 14? How to set NSUserTrackingUsageDescription
Memo for migration from java to kotlin
Kotlin functions and lambdas to send to Java developers
Introduction to Ratpack (Extra Edition) --Ratpack written in Kotlin
How to link Rails6 Vue (from environment construction)
CI / CD practice for beginners --Part1 --Environment construction
[Ubuntu 18.04] Environment construction for using PyTorch with RTX3090
Initial settings for rewriting Java projects to Kotlin
Getting started with Kotlin to send to Java developers
An introduction to Groovy for tedious Java engineers
[Introduction to Java] Basics of java arithmetic (for beginners)
Introduction to Ruby 2
[Java] Environment construction
Introduction to SWING
For those who want to use MySQL for the database in the environment construction of Rails6 ~.
Introduction to web3j
Introduction to Micronaut 1 ~ Introduction ~
[Java] Introduction to Java
Introduction to migration
Introduction to java
[Spring] Environment construction
Docker environment construction
Introduction to Doma
Introduction to programming for college students (updated from time to time)
Stable development environment construction manual for "Rails6" with "Docker-compose"
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Java] Environment construction procedure for developing struts 1.3 with Eclipse
Introduction to Java for beginners Basic knowledge of Java language ①
Introduction to Programming for College Students: Making a Canvas
How to study kotlin for the first time ~ Part 2 ~
How to study kotlin for the first time ~ Part 1 ~
Environment construction for OSS-DB Silver # 2_Preparation 1-Create a user account to operate PostgreSQL on CentOS7