skip to Main Content

enter image description here

In project build.gradle:

buildscript = ext.kotlin_version = '1.6.10' 

// dependencies 
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

In app build.gradle:

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

2

Answers


  1. Try changing

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version
    

    to

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10"
    
    Login or Signup to reply.
  2. Try updating classpath gradle version in android/build.gradle
    classpath("com.android.tools.build:gradle:x.x.x") maybe update a more recent version (3.0.1 > 4.0.1), some times this cause problems. After do this, go to android folder in the console (cd android) and clean chache (./gradlew clean),

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