Building Kotlin Gradle Plugin

I’m trying to build & install Kotlin Gradle plugin from master following the instructions here:

After successful build how should it be installed into Android Studio (which .jar file represents the Kotlin plugin)?

Android Studio 3.1 Beta 2
Build #AI-173.4580418, built on February 1, 2018

Kotlin Gradle plugin is a plugin for Gradle, you cannot install it as a plugin for Android Studio.
You either can:

  • install the locally built gradle plugin into some maven repository, for example maven local, and then apply it to your gradle build script
  • build the Kotlin IDE plugin for Android Studio and install it to Android Studio

The instructions vary depending on what of the above do you need.

Since Android Studio uses Gradle to build project, you definitely need to compile and install Kotlin Gradle plugin by following the instruction you have linked above.

Once you have done it, you can use it in your android project build.gradle script:

buildscript {
    repositories {
    dependencies {
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2-SNAPSHOT"