当你遇到“flutter your project requires a newer version of the kotlin gradle plugin”这个错误时,通常意味着你的Flutter项目中使用的Kotlin Gradle插件版本过旧,需要更新到最新版本。以下是根据你提供的tips来逐步解决这个问题的过程: 1. 确认项目当前使用的Kotlin Gradle插件版本 首先,你需要找到项目中的build.grad...
│ [!] 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>'...
清除所有缓存和构建文件后重新编译: flutter cleanrm-rf~/.gradle/caches flutter build apk 1. 2. 3. 检查Gradle 插件版本和 Flutter SDK 某些版本的 Flutter SDK 默认使用较旧的 Gradle 和 Kotlin 插件版本。确保 Flutter SDK 是最新的,并更新 Android Gradle 插件: flutter upgrade 1. 在android/build.gradle...
This short article shows you how to solve a problem you might encounter when developing an Android app with Flutter. The Error Advertisements When trying to start a Flutter project with an Android emulator, I ran into the following issue: Your projectrequiresa newer version of the Kotlin...
The class is loaded from C:/Users/samsung/.gradle/caches/transforms-3/7ad36a5b116dac2d2ae0e1e5f4e80713/transformed/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class e: D:\Flutter\flutter\.pub-cache\hosted\pub.flutter-io.cn\wakelock-0.6.1+1\android\src\main\kotlin\creativemaybeno\wak...
151 changes: 0 additions & 151 deletions 151 ...rc/main/java/com/yanisalfian/flutterphonedirectcaller/FlutterPhoneDirectCallerPlugin.java Load diff This file was deleted. 137 changes: 137 additions & 0 deletions 137 ...rc/main/kotlin/com/yanisalfian/flutterphonedirectcaller/FlutterPhoneDirect...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 4248 bytes (99.7% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag...
Hi, I encountered an error while installing a Flutter Package => audioplayers: ^0.19.1Error:Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, e...
Flutter Service Introduction Version Change History Development Guide Development Process Preparations Preparing the Development Environment Configuring App Information in AppGallery Connect Integrating the Map Kit Plugin for Flutter Client Development Adding Permissions Creating a ...
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...