5
मैं gradle
का उपयोग कर रहा हूं और मैं अपनी परियोजना में kotlin
जोड़ने की कोशिश कर रहा हूं। लेकिन जब मैं kotlin
प्लगइन gradle
के लिए प्लगइन जोड़ने की कोशिश कर रहा हूं तो यह इसे खोजने में विफल रहता है।आईडी 'कोटलिन' के साथ प्लगइन नहीं मिला
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'
}
मैं यह त्रुटि
Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id 'kotlin' not found.
क्या समस्या है मिल सकता है?