如果一切设置正确,项目应该能够成功构建,错误也应该被解决。 按照以上步骤操作后,你的Flutter项目应该能够使用最新版本的Kotlin Gradle插件,从而解决因版本过旧导致的问题。如果问题仍然存在,可能需要检查其他配置或依赖项是否也存在兼容性问题。
1.修改android-buildgradle中 ext.kotlin_version ='最新' 2.修改android-settings.gradle plugins { // id "dev.flutter.flutter-plugin-loader" version "1.0.0" // id "com.android.application" version "7.3.0" apply false // id "org.jetbrains.kotlin.android" version "1.7.10" apply false //修...
│ [!] 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>'...
在<app>/android/build.gradle文件中添加ext.kotlin_version和kotlin依赖项。
[✓] Chrome - develop for the web [✓] Android Studio (version 2022.1) [✓] IntelliJ IDEA Ultimate Edition (version 2021.3) [✓] VS Code (version 1.76.2) 一:新建插件工程 若已打开Android Studio:File->New->New Flutter Project->Next ...
Flutter was initially unveiled at the 2015 Dart developer summit. Three years later, Google released the first stable release version — Flutter 1.0 — on December 5, 2018, at the Flutter Live event. It is used to develop applications for Android, iOS, Windows, Mac, Linux, Google Fuchsia, ...
Flutter: Changing App Display Name for Android & iOS 3 Ways to Cancel a Future in Flutter and Dart Flutter StreamBuilder examples (null safety) Flutter: SliverGrid example Flutter: Creating an Auto-Resize TextField You can also check out ourFlutter category pageorDart category pagefor the ...
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\workmanager-0.4.1\android\src\main\kotlin\be\tramckrijte\workmanager\BackgroundWorker.kt: (83, 51): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is...
问题是mobile_scanner-3.4.1需要Kotlin1.9.0,而你使用的是1.7.10。有两种可能的解决方案:1.您...
│ update/XXX/XXX/AndroidStudioProjects/Flutter_Eyepetizer-master/android/build.gradle:│ ext.kotlin_version='<latest-version>'└─────────────────────────────────────────┘ 这个编译错误是表示ext.kotlin_version需要更新,这个项目里面的Kotlin没有办法适配...