# The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'this' is using version 1.2.20

**URL:** <https://discuss.kotlinlang.org/t/the-android-gradle-plugin-supports-only-kotlin-gradle-plugin-version-1-2-51-and-higher-project-this-is-using-version-1-2-20/12061>\
**Category:** Android\
**Created:** [March 21, 2019, 6:29pm UTC](https://discuss.kotlinlang.org/t/the-android-gradle-plugin-supports-only-kotlin-gradle-plugin-version-1-2-51-and-higher-project-this-is-using-version-1-2-20/12061 "2019-03-21T18:29:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abnagori](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@abnagori](https://discuss.kotlinlang.org/u/abnagori)\
**Post date:** [March 21, 2019, 6:29pm UTC](https://discuss.kotlinlang.org/t/the-android-gradle-plugin-supports-only-kotlin-gradle-plugin-version-1-2-51-and-higher-project-this-is-using-version-1-2-20/12061/1 "2019-03-21T18:29:06Z")

</div>

```
apply plugin: 'com.android.application'

```

apply plugin: ‘kotlin-android’  
apply plugin: ‘kotlin-android-extensions’

android {  
compileSdkVersion 28  
defaultConfig {  
applicationId “com.blackbox.ffmpeg.examples”  
minSdkVersion 16  
targetSdkVersion 28  
versionCode 1  
versionName “1.0”  
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”  
}  
buildTypes {  
release {  
minifyEnabled false  
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’  
}  
}  
}

buildscript {  
ext.kotlin\_version = ‘1.3.21’  
repositories {  
google()  
jcenter()  
}  
}  
dependencies {  
implementation fileTree(include: [‘\*.jar’], dir: ‘libs’)  
testImplementation(‘com.android.support.test.espresso:espresso-core:2.2.2’, {  
exclude group: ‘com.android.support’, module: ‘support-annotations’  
})

```
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:gridlayout-v7:28.0.0'

    testImplementation 'junit:junit:4.12'
    //FFmpeg Library
    implementation 'com.writingminds:FFmpegAndroid:0.3.2'
    implementation 'org.jcodec:jcodec-android:0.1.9'
    //GIF Viewer
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

}
repositories {
    mavenCentral()
}

```

this is my code please help me totally stuck, please help

---

<div class="post-metadata">

**Author:** ![pdvrieze](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pdvrieze/32/1882_2.png) [@pdvrieze](https://discuss.kotlinlang.org/u/pdvrieze)\
**Post date:** [March 28, 2019, 9:42pm UTC](https://discuss.kotlinlang.org/t/the-android-gradle-plugin-supports-only-kotlin-gradle-plugin-version-1-2-51-and-higher-project-this-is-using-version-1-2-20/12061/2 "2019-03-28T21:42:39Z")

</div>

The kotlin version is specified overall on the parent project. Go look at the other build.gradle file. If not there, the version resolution will be in settings.gradle.

---

<div class="post-metadata">

**Author:** ![abnagori](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@abnagori](https://discuss.kotlinlang.org/u/abnagori)\
**Post date:** [March 29, 2019, 12:26pm UTC](https://discuss.kotlinlang.org/t/the-android-gradle-plugin-supports-only-kotlin-gradle-plugin-version-1-2-51-and-higher-project-this-is-using-version-1-2-20/12061/3 "2019-03-29T12:26:09Z")

</div>

Thanks it can work 😊
