Google has recently announced that it is going to remove all sorts of “expected ‘;’” errors from Android Studio in their next major update for Android Studio, in version 3. The previous sentence was a total pun, and it was the way I first interpreted their shift from Java codebase to Kotlin. I don’t get the point of why everyone is hating the semicolon so much. Everyone keeps introducing new languages, and the most notable feature that distinguishes from the older languages is the semi-colon removal.
Enough gossip! Now, let’s talk about reality in the post and have a look at what we have right now which has caused tremendous amount of havoc on the internet, after those famous cat videos of course. 🙂
Is Kotlin new to Android?
Android now officially supports the Kotlin programming language, along with Java and the native programming using C++ language.
Figure 1: Kotlin logo
Typical question would be: Is this a new programming language to learn? Definitely no, and it is definitely not a new language for Android as well. Kotlin had been in the game for awhile and if you have not yet heard about it, then you did not surf around in the Android world enough. Kotlin has been around for a quite a long time and most of the Android developers have already started using Kotlin language as their default language over Java. To me, the entire concept came as a new thing and at the first look, I was like, what the heck is this? Am I going to learn all of this now?
But, as the time passed, and I was able to convert and see the difference between java and Kotlin, I came to realize they shared most of the concepts and syntax, however, some of the stuff resembles Swift, and some C++ (or even C#), and some of the concepts were taken from “defensive programming”, and so on and so forth. Although the language was impressive but the news that came on the Internet was not — as I did not watch the Google I/O 2017, I did not know what happened until I did watch it. I came to easily realize that the Kotlin language was not a new one, or that Google did not say that they are going to leave Java out and everyone would be required to program in Kotlin, they both (Java and Kotlin, even C++) are all interoperable. Your current projects would continue to be in Java, until or unless you want to migrate the code base from one language to another one; new one. This provides the developers with a flexibility to migrate the code base, or work on the existing one: Your Android dev team can be split up into other sections, C++, Java and now Kotlin as well. Interesting right (hehe, can’t imagine I said this…).

Figure 2: Android promoting Kotlin, or vice versa.
So, the benefits are amazing and still counting, there will be much more by Google that you can anticipate getting and enjoying soon.
How to get Kotlin for Android
In my own opinion, it was a great step by Google to integrate the Kotlin language in Android Studio. Why? For several reasons:
- Android developers were already using Kotlin language for their projects.
- There was a plugin previously, that they needed to install to migrate the code base from Java to Kotlin. Also, it required some of the tweaking to the current build systems; to support Kotlin.
- IntelliJ based system, and IntelliJ based language. Why not, eh?
Thus, Google announced that they will start shipping Kotlin support, built in. Android Studio 3 (which is, at the time of writing the post, a Canary version), would be the first of the versions to get the Kotlin packages pre-installed and a complete support to develop Android applications in Kotlin language.
There are several other blog posts that you should consider reading if you are new to the entire Kotlin concept.
References
Improvements that Kotlin brings
Someone might say, this is a better language as compared to the older one, right? Sadly, I am not that someone. Too much syntax simplicity makes me “think”! If we ignore the common improvements that Kotlin brings and have a look at what Android Studio offers, we can summarize this by saying,
“Android Studio speaks Kotlin”.
The most notable features of Android Studio 3 are that now, you can simply code your Java code from a Java class, and try to copy it in a Kotlin file, Android Studio will automatically convert that code from Java to Kotlin and print it there for you!

Figure 3: Dialog from Android Studio confirming to convert Java code to Kotlin.
I also got a chance to actually carefully study the current benchmarking, and some other references by other experts on Kotlin and/or the people who have been working in the Kotlin environment, and I learned that you can actually love Kotlin for various reasons, and while being developed on top of (or beside) Java there are several ways in which Kotlin can be useful:


Mahesh ChandPosted May 23, 2017, 7:17 AM
Nice. Should we create a new category on the site? This looks good.