当你在Flutter项目中遇到“your project requires a newer version of the kotlin gradle plugin”的错误时,这通常意味着你的项目中所依赖的Kotlin插件版本过旧,需要升级到较新的版本来匹配当前的Gradle或Kotlin版本。以下是根据你提供的提示,逐步解决这个问题的步骤: 1. 确认项目当前使用的Kotlin Gradle插件版本 首先...
4、可以 对项目进行一些约定,如应用 Java 插件后,约定 src/main/java 目录是我们的源代码存在位置,...
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update D:\LaptopBackup\Project\Flutter\e_shop\android\build.gradle: │ │ ext.kotlin_version = '<latest-version>'...
I am trying to add firebase dependencies. When I run flutter run I get The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. The following dependencies do not satisfy the required version: project ':googl...
To get the update-to-date version number of the Kotlin Gradle plugin, go to https://docs.gradle.org/current/userguide/compatibility.html#kotlin. Now run your project again, and it should work as expected: That’s it. Further reading: Flutter: Changing App Display Name for Android & iOS...
我们可以看到是flutter的外部依赖:kotlin-gradle-plugin-1.2.71 下载不了,下面我介绍使用手动下载的方式去解决: 首先,看到flutter项目目录,注意我标出的是运行项目时需要使用的依赖,我们右键选择properties 可以看到该依赖所在磁盘位置,我们手动下载上面的文件,放进去即可点击下载该依赖文件...
我正在尝试添加 firebase 依赖项。当我运行flutter run我得到 The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. The following dependencies do not satisfy the required version: project ':google_api_availability' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 ...
def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" ...
带有spotless和ktlint的gradle.build Android Kotlin 在带有Kotlin的android中,3个手指长按 修复Android程序的运行时错误 带有Kotlin Flow toList()的Android Room库不起作用 在android的kotlin类中得到多个错误? 在使用kotlin的android studio中出现错误 Android Studio 3.3.2中的Gradle Sync Kotlin错误 ...
I'd like to add that it'd be great if Flutter's Gradle Plugin could be applied using the, so that developers would do: Yeah. This would be good to file as a separate issue. Is there something the plugin itself needs to do differently to enable this, or is it just a matter of ch...