Flutter Android Gradle插件到3.2.0版或更高版本
我已经更新了最新的Android Gradle版本,但是在生成签名捆绑包时仍显示错误。
生成签名的捆绑包需要您将Android Gradle插件更新为版本3.2.0或更高版本
下面我有分享版本的详细信息。
buildscript {
ext.kotlin_version = '1.6.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.10'
}
}
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
Android Studio版本
Android Studio Bumblebee | 2021.1.1补丁3 构建#AI-211.7628.21.2111.8309675,建于2022年3月16日 运行时版本:11.0.11+0-B60-7772763 AARCH64 VM:Jetbrains SRO的OpenJDK 64位服务器VM MacOS 11.4 GC:G1年轻一代,G1旧一代 内存:1280m 核心:8 注册表:external.system.auto.import.disabled = true 非捆绑插件:DART(211.7817),org.jetbrains.kotlin(2111-1.6.21-REELEASE-334-AS7442.40),io.flutter(66.0.1)(
)
66.0.1 a href =“ https://github.com/flutter/flutter.git” rel =“ noreferrer”> https://github.com/flutter/flutter/flutter.git.git 框架•修订版5F105A6CA7(3个月前)•2022-02-01 14:15:42 -0800 引擎•修订776EFD2034 工具•飞镖2.16.0•DevTools 2.9.2
I have already update the latest Android Gradle version but still showing the error when generating the signed bundle.
generating signed bundle requires you to update the android gradle plugin to version 3.2.0 or higher
Below i have share the version details.
buildscript {
ext.kotlin_version = '1.6.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.10'
}
}
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
Android studio version
Android Studio Bumblebee | 2021.1.1 Patch 3
Build #AI-211.7628.21.2111.8309675, built on March 16, 2022
Runtime version: 11.0.11+0-b60-7772763 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.4
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (211.7817), org.jetbrains.kotlin (211-1.6.21-release-334-AS7442.40), io.flutter (66.0.1)
Flutter version
Flutter 2.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5f105a6ca7 (3 months ago) • 2022-02-01 14:15:42 -0800
Engine • revision 776efd2034
Tools • Dart 2.16.0 • DevTools 2.9.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更改您的构建gradle文件,如,
我认为您还不在最新版本中。
我使用此命令来升级大多数最新版本
,您可以更改构建gradle(android级别)
Change Your Build Gradle File Like Below
I think you are not in the latest version yet.
I Used this command to upgrade most the latest version
Now you can change your Build Gradle(Android Level)