close
New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version

[Solved] New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version

Hello, guys how are you all? Hope you all are fine. When trying to add cloud_firestore to my app, I have the following issue in my stack track New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version.

So here is this article to gat all possible solution to solve New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version.. Lets start this article without wasting your time.

How New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version Error occurs?

When trying to add cloud_firestore to my app, I have the following issue in my stack track.

Error message

    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: com.android.tools.idea.gradle.project.sync.ng.NewGradleSyncNotSupportedException: New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version
    at com.android.tools.idea.gradle.project.sync.ng.SyncProjectModels.failIfKotlinPluginApplied(SyncProjectModels.java:108)
    at com.android.tools.idea.gradle.project.sync.ng.SyncProjectModels.failIfKotlinPluginApplied(SyncProjectModels.java:111)
    at com.android.tools.idea.gradle.project.sync.ng.SyncProjectModels.populate(SyncProjectModels.java:84)
    at com.android.tools.idea.gradle.project.sync.ng.SyncAction.execute(SyncAction.java:59)
Cause 2: org.gradle.internal.exceptions.LocationAwareException: New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version

How to solve New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version Error?

  1. How to solve New Gradle Sync not supported due to containing Kotlin modules using unsupported plugin version ?

    to solve New Gradle Sync not supported due to containing Kotlin modules using unsupported plugin version This issue cause of JVM version. Solution of this error to update JVM version in kotlin compiler Setting with this instruction. So, I  had to update my JVM Version in Kotlin Compiler settings. You can find that setting here: File -> Settings -> Kotlin Compiler -> Target JVM Version Changing to 1.8 fixed the issue.

  2. New Gradle Sync not supported due to containing Kotlin modules using unsupported plugin

    to solve New Gradle Sync not supported due to containing Kotlin modules using unsupported plugin version This issue cause of JVM version. Solution of this error to update JVM version in kotlin compiler Setting with this instruction. So, I  had to update my JVM Version in Kotlin Compiler settings. You can find that setting here: File -> Settings -> Kotlin Compiler -> Target JVM Version Changing to 1.8 fixed the issue.

Solution 1

This issue cause of JVM version. Solution of this error to update JVM version in kotlin compiler Setting with this instruction.

  1. So, I  had to update my JVM Version in Kotlin Compiler settings.
  2. You can find that setting here: File -> Settings -> Kotlin Compiler -> Target JVM Version
  3. Changing to 1.8 fixed the issue.

Solution 2

It could be that your IDE has an older level of the Kotlin plugin.

Within Android Studio, got to File > Settings... > Kotlin and check to make sure your plugin is up to date. You may see something like this, indicating you need to update:

Solution 3

First Check your JVM version

  1. Open Window
  2. Go to Java from Programs
  3. Open ‘About Java’ and this will show you the version of your JVM

Now Update JVM version in your Android Studio

  1. File -> Settings.. -> Kotlin Compiler
  2. Go to ‘Target JVM Version’
  3. Select the version that your JVM have.

That’s it. Your studio will build again automatically..

Solution 4

For Mac(Catalina) Users

  1. Select Android Studio (This is hidden, move your cursor to the top of the screen to reveal this option)
  2. Then,
  3. Preferences -> Kotlin Compiler -> Target JVM Version
  4. now modify the respective java version, I changed Target JVM version from 1.6 to 1.8 to make it work.
  5. Shortcut to open Preferences in Android Studio is Cmd + ,

Hope This Above 4 Solution Will Work For You Too. So it’s all About this error. Hope this article helped you a lot. Comment below Your thoughts and your queries. And Also Comment on your suggestion here.

Also Read


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *