Skip to content

Commit c8daabc

Browse files
committed
Clarify documentation for configuring Gradle on Android
1 parent 105bcc6 commit c8daabc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pages/docs/reference/using-gradle.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,20 @@ Android's Gradle model is a little different from ordinary Gradle, so if we want
101101

102102
``` groovy
103103
buildscript {
104+
ext.kotlin_version = '<version to use>'
105+
104106
...
107+
108+
dependencies {
109+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
110+
}
105111
}
106112
apply plugin: 'com.android.application'
107113
apply plugin: 'kotlin-android'
108114
```
109115

116+
Don't forget to configure the [standard library dependency](#configuring-dependencies).
117+
110118
### Android Studio
111119

112120
If using Android Studio, the following needs to be added under android:

0 commit comments

Comments
 (0)