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

前端 未结 8 1775
遇见更好的自我
遇见更好的自我 2021-02-02 04:56

I\'m using android studio 3.4.1 and my Kotlin version is 1.3.31. I have a flutter app. When trying to add cloud_firestore to my app I have the followin

相关标签:
8条回答
  • 2021-02-02 05:34

    Update Kotlin Plugin

    I 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:

    Also, if you run into memory issues, you may need to add org.gradle.jvmargs=-Xms1024m -Xmx4096m to the gradle.properties file.

    0 讨论(0)
  • 2021-02-02 05:36

    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..

    0 讨论(0)
  • 2021-02-02 05:37

    In Android Studio,

    • Click "Shift" button twice

    • Enter Kotlin Compiler as shown below

    • Change Target JVM version from 1.6 to 12

    This works for me.

    0 讨论(0)
  • 2021-02-02 05:40

    For Mac(Catalina) Users

    Select Android Studio (This is hidden, move your cursor to the top of the screen to reveal this option)

    Then,

    Preferences -> Kotlin Compiler -> Target JVM Version

    now modify the respective java version, I changed Target JVM version from 1.6 to 1.8 to make it work.

    Shortcut to open Preferences in Android Studio is Cmd + ,

    0 讨论(0)
  • 2021-02-02 05:45

    Faced this same error. 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.

    0 讨论(0)
  • 2021-02-02 05:45

    To me, using IDEA 2019.3.4, change Kotlin JVM version to IDEA bundled one (version:11) which found in Project Settings->Platform Settings->SDKs , solved the problem.

    0 讨论(0)
提交回复
热议问题