skip to Main Content

I updated my android, and then created new project.

But, when I tried to run this application, it’s just a default application – no packages imported or changes made, it throws an error:

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':wakelock' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

I’m not sure what the problem is: Could it be that i didn’t install my environments and stuff properly or something.

Please help for i have made my application, but before launching am facing this error…So devastating, already tried for 3 days!

2

Answers


  1. What version of the AGP are you using?

    Seems like you need to update your AGP to a newer version that actually supports Kotlin version 1.5.20.

    Try running the AGP Upgrade Assistant at the very bottom of the Tools menu.

    Login or Signup to reply.
  2. In my case, I solved it by changing the following in wakelock build.gradle:

    buildscript {
    ext.kotlin_version = ‘1.5.20’

    wakelock screenshot

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search