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.
So let's get ready. Note) Basically, Mac users are assumed. If you are in a windows environment, please read as appropriate.
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. The link on the left side of the large image that says "Java DOWNLOAD" will take you to the download screen.
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.
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.
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
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". 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.
First start Android Studio to install kotlin. You will see a screen that looks like you saw it in Xcode.
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. 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.
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