【发布时间】:2021-01-25 12:49:20
【问题描述】:
我尝试启动我的应用程序,但出现错误...我整合了 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
【问题讨论】:
-
你使用的是什么版本的 Gradle?
-
我找到了解决办法,谢谢
标签: api google-maps flutter dart geolocation