Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio plugin with id: 'kotlin-android-extensions'

I am using gradle and I am trying to add kotlin to my project. But when I am trying to add 'kotlin-android-extensions' plugin for gradle it fails to find it.

like image 958
Ziad Saad Avatar asked Mar 14 '26 06:03

Ziad Saad


1 Answers

To use the plugin, you have to add it in your root level file:

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com'
        }
    }
    ext.kotlin_version = '1.1.2-4'
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
like image 146
Gabriele Mariotti Avatar answered Mar 15 '26 19:03

Gabriele Mariotti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!