サポートされていないプラグインバージョンを使用するKotlinモジュールが含まれているため、新しいGradleSyncはサポートされていません
New Gradle Sync Is Not Supported Due Containing Kotlin Modules Using An Unsupported Plugin Versio
問題:
New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version
The Android Gradle plugin(1.3.31)supports only Kotlin Gradle plugin version 1.3.0 and higher.
理由:
gradleによって構成されたkotlinプラグインのバージョンが、IDE(android-studio)のkotlinプラグインのバージョンと一致しないため、kotlinプラグインを有効にできません。
android-studioでは、kotlinはシステムに付属するプラグインです。android-studioのルートディレクトリの下にあるpluginsフォルダーにkotlinフォルダーがあります。
AndroidStudioで直接表示することもできます
解決する
プロジェクト:build.gradle
project : build.gradle buildscript { //This is changed to match the IDE plugin version (here, 1.3.30 or above) ext.kotlin_version = '1.3.31' dependencies { classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version' } }
アプリ:build.gradle
apply plugin: 'com.android.application' apply plugin: 'kotlin-android'// apply plugin: 'kotlin-android-extensions' // dependencies { //kotlin support library implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version' }