Error:(1, 0) Plugin with id 'kotlin-android-extensions' not found

前端 未结 3 1611
借酒劲吻你
借酒劲吻你 2021-01-07 15:55
apply plugin: \'kotlin-android-extensions\'.

When i add this extensions in android studio preview, give me this error \"Error:(1, 0) Plugin with id

3条回答
  •  孤街浪徒
    2021-01-07 16:51

    To use the plugin, you have to add it in your root build.gradle file

    buildscript {
    ext.kotlin_version = '1.1.60'
        repositories {
            jcenter()
            maven {
                url 'https://maven.google.com'
            }
        }
    
        dependencies {
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        }
    }
    

提交回复
热议问题