Why do I get the error: Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher
Why do I get the error: Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher
我试图启动我的应用程序,但出现错误...我激怒了 google_maps_flutter: ^1.0.2
和 geolocator: ^2.1.0
。所以其中一个必须是问题,但我不明白错误的含义。
错误:
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
root project 'android' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
Exception: Gradle task assembleDebug failed with exit code 1
但在我的 build.gradl
中有一行:ext.kotlin_version = '1.3.50'
并且高于 1.2.71
您必须使用地理定位器版本 geolocator: ^5.1.3
我试图启动我的应用程序,但出现错误...我激怒了 google_maps_flutter: ^1.0.2
和 geolocator: ^2.1.0
。所以其中一个必须是问题,但我不明白错误的含义。
错误:
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
root project 'android' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
Exception: Gradle task assembleDebug failed with exit code 1
但在我的 build.gradl
中有一行:ext.kotlin_version = '1.3.50'
并且高于 1.2.71
您必须使用地理定位器版本 geolocator: ^5.1.3