2016-04-04 8 views
5

Ich verwende gradle und ich versuche, kotlin zu meinem Projekt hinzuzufügen. Aber wenn ich versuche, kotlin Plugin für gradle hinzuzufügen, kann es nicht gefunden werden.Plugin mit ID `kotlin` nicht gefunden

apply plugin: 'groovy' 
apply plugin: 'kotlin' 

buidscript { 
    ext.kotlin_version = '1.0.1-2' 

    repositories { 
     jcenter() 
     mavenCentral() 
    } 

    dependencies { 
     classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.1-2' 
    } 
} 

repositories { 
    jcenter() 
} 

dependencies { 
    compile 'org.codehaus.groovy:groovy-all:2.4.6' 
    compile 'org.antlr:antlr4:4.5.3' 

    testCompile 'org.spockframework:spock-core:1.0-groovy-2.4' 
    testCompile 'junit:junit:4.12' 

    compile 'org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version' 

} 

Ich erhalte diesen Fehler

Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id 'kotlin' not found. 

Was ist das Problem?

Antwort

9

Sie haben einen Tippfehler. Es sollte

buildscript { 

statt buidscript sein.

Verwandte Themen