Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android kotlin version

Tags:

android

kotlin

Does anyone face below issue? Can somone help on this. Current gradle version 4.4 in dist

Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50-eap-62. Searched in the following locations:

  • https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.50-eap-62/kotlin-gradle-plugin-1.2.50-eap-62.pom
  • https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.50-eap-62/kotlin-gradle-plugin-1.2.50-eap-62.jar
  • https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.50-eap-62/kotlin-gradle-plugin-1.2.50-eap-62.pom
  • https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.50-eap-62/kotlin-gradle-plugin-1.2.50-eap-62.jar
like image 602
user3300511 Avatar asked Jun 14 '18 12:06

user3300511


2 Answers

I faced the same problem when i update my Android Studio. i solved

buildscript {
ext.kotlin_version = '1.3.10'

repositories {
    mavenCentral()
}

dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

If you used classpath 'io.fabric.tools:gradle:1.25.1'

than you need to change classpath 'io.fabric.tools:gradle:1.+'

like image 116
Borhan Uddin Avatar answered Oct 04 '22 04:10

Borhan Uddin


I Faced the same problem on Android Studio version 3.2, and I changed this:

ext.kotlin_version = '1.2.50'

in build.gradle(Project:"Your Project Name") File,

to this:

ext.kotlin_version = '1.2.51'

and Sync now or restarted Android Studio.

like image 30
Rasheed Kamal Avatar answered Oct 04 '22 02:10

Rasheed Kamal