BT

Your opinion matters! Please fill in the InfoQ Survey!

Kotlin Use for Android Apps is Growing, Getting More Google Support

| by Sergio De Simone Follow 5 Followers on Nov 04, 2017. Estimated reading time: 1 minute |

In the six months since Google announced official support for Kotlin as a first-class language for Android development, Kotlin usage has more than doubled, writes Google product manager James Lau, and more than 17% of Android Studio 3.0 projects now use Kotlin.

The figures provided by Lau are consistent with a recent Realm report claiming that about 15% of Android developers are using Kotlin and 20% of apps are being ported from Java to Kotlin. Additionally, Realm predicts that 50% of Android developers will be using Kotlin by the end of 2018.

Google, as Lau explains, has been working in the last few months to improve Kotlin support for Android development. In particular, as InfoQ already reported, Android Studio 3.0 has got stable support for Kotlin, including the creation of new Kotlin files or the conversion of Java code to Kotlin. Additionally, Android Studio 3 is able to translate Java snippets into Kotlin by just pasting them into a Kotlin file.

Another significant improvement concerns the addition of nullability annotations to the Android Support Library. In fact any Java reference can be null, thus defeating Kotlin’s special requirements to handle null values. Nullability annotations will provide the Kotlin compiler with enough information to properly handle nullable and non-nullable variables.

As a final note, Google has also published a couple of guides meant to provide guidance for Android developers interested in using Kotlin. In particular, the Kotlin Style Guide collects rules and coding standard, including naming conventions, formatting, etc. The Interop guide focuses on best practices when creating APIs in either Java or Kotlin so that their usage feels idiomatic in both languages.

If you are interested in trying out Kotlin for Android development, you might want to check what remains to do to provide a better Kotlin experience before jumping on the Android Studio 3 bandwagon.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT