添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
玩足球的馒头  ·  Settings.gradle not ...·  2 天前    · 
酷酷的羊肉串  ·  The Android Gradle ...·  3 天前    · 
另类的冲锋衣  ·  The Android Gradle ...·  3 天前    · 
没有腹肌的西瓜  ·  The Android Gradle ...·  3 天前    · 
知识渊博的帽子  ·  sample build failure ...·  1 月前    · 
谦逊的佛珠  ·  Issues · ...·  3 月前    · 
朝气蓬勃的茶叶  ·  Nature Machine ...·  4 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account
  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    root project 'android' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
  • This basically means that the gradle version used in the plugin itself is outdated.

    I was able to solve this error by manually upgrading the org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 in the AR plugin itself. -> you can edit the source code of plugins in Android Studio. (as far as i know, not in VsCode)

    Steps I took:
    1)Open project in Android Studio,
    2) Below project there should be a folder "External Libraries"
    (If you cant see the external libraries, make sure project is selected in the dropdown)

  • Open External Libraries>Flutter plugins>ar_flutter_plugin>android>build.gradle
  • In that file, update the ext.kotlin.version.
  • buildscript {
        ext.kotlin_version = '1.5.20'
    

    Hope this solves it for you!

    This basically means that the gradle version used in the plugin itself is outdated.

    I was able to solve this error by manually upgrading the org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 in the AR plugin itself. -> you can edit the source code of plugins in Android Studio. (as far as i know, not in VsCode)

    Steps I took: 1)Open project in Android Studio, 2) Below project there should be a folder "External Libraries" (If you cant see the external libraries, make sure project is selected in the dropdown) image

  • Open External Libraries>Flutter plugins>ar_flutter_plugin>android>build.gradle
  • In that file, update the ext.kotlin.version.
  • buildscript {
        ext.kotlin_version = '1.5.20'
    

    Hope this solves it for you!

    thanks