【问题标题】:Why do I get the error: Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher为什么我会收到错误消息:Android Gradle 插件仅支持 Kotlin Gradle 插件版本 1.3.10 及更高版本
【发布时间】:2021-01-25 12:49:20
【问题描述】:

我尝试启动我的应用程序,但出现错误...我整合了 google_maps_flutter: ^1.0.2geolocator: ^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


【解决方案1】:

您必须使用地理定位器版本geolocator: ^5.1.3

【讨论】:

    猜你喜欢
    • 2023-04-11
    • 2020-06-11
    • 1970-01-01
    • 2019-07-03
    • 2023-02-18
    • 2019-07-08
    • 1970-01-01
    • 2019-10-24
    相关资源
    最近更新 更多