buildscript { ext.kotlin_version = '1.7.10' repositories { .... } dependencies { classpath 'com.android.tools.build:gradle:7.6.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } 这是我配置的
} 把ext.kotlin_version = '1.2.30'换成ext.kotlin_version = '1.2.71',把classpath 'com.android.tools.build:gradle:3.1.0'换成classpath 'com.android.tools.build:gradle:3.2.1'。 再打开gradle-wrapper.properties,如下: 代码语言:txt AI代码解释 #Wed Oct 10 15:20:17 CST 2018 distributionBase=...
到Kotlinglang.org网站,吧kotlin的最新版本填写到projectname/andorid/build.gradle里面即可解决。 buildscript { ext.kotlin_version ='1.6.20' repositories { google() mavenCentral() } ┌─ Flutter Fix ─────────────────────────────────────────────...
1,升级Gradle到7.4.2,在VScode终端运行gradle init重建gradle环境(因为项目在升级前建立,gradle版本是6.2),。 2,修改项目下面的Android目录下面的build.gradle 里面的ext.kotlin_version ='1.6.20'到最新版本。 3,修改项目目录下面APP里面的build.gradle里面的targetSdkVersion31好像没有意义,30,31都没有问题。 4,...
[!] 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/Users/goodman/Desktop/Projects/kindacode/android/build.gradle: ext.kotlin_version ='<latest-version>'──────...
有一个项目里的包,作者2年前断更了,只支持flutter2,这次把项目升级到flutter3.10,那么这个包也需要升级。 首先把包下载下来,解压后,我们开始修改 1。修改配置文件,把依赖项目更换为新版本 android/build.gradle buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() } dependencie...
ext.kotlin_version = '1.3.0' repositories { // google() // jcenter() maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } ...
ext.kotlin_version = '1.5.0' 👍5🎉3 TahaTesseradded in triagePresently being triaged by the triage team on Jun 3, 2021 TahaTesser commented on Jun 3, 2021 TahaTesser on Jun 3, 2021 Member Hi @kjeremy Couldn't reproduce any issues with default config buildscript { ext.kotlin_versi...
按照提示,将ext.kotlin_version = ‘1.6.0’ 再接着build,运行,然后又又又报错!!!T^T 根据提示包冲突了,那我就在所有引用unity-classes包的地方,将implementation改成compileOnly 再运行一下,终于好了!!T^T 八、flutter_unity_widget运用 import 'package:flutter/material.dart'; ...
In the[my_project]/android/build.gradlefile, change the Kotlin version to match the updated plugin version (the release suffix on the plugin version, e.g.-release-IJ2018.3-1, is not needed): buildscript { ext.kotlin_version = '1.3.20' ...