Flutter 获得最低支持 7.3.1 错误

问题描述 投票:0回答:1

当我尝试制作我的应用程序的

apk
时,我收到此错误:

> Failed to apply plugin 'kotlin-android'.
   > Kotlin Gradle Plugin <-> Android Gradle Plugin compatibility issue:
     The applied Android Gradle Plugin version (7.3.0) is lower than the minimum supported 7.3.1.

     Please update the Android Gradle Plugin version to at least 7.3.1.

收到此错误后我尝试更改

id "com.android.application" version "7.3.0" apply false

id "com.android.application" version "7.3.1" apply false

并运行此命令:

flutter clean
./gradlew clean

我收到此错误:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:7.3.1')
  Searched in the following repositories:
    Google
    MavenRepo
    Gradle Central Plugin Repository

你能帮我解决这个问题吗?

android flutter gradle
1个回答
0
投票

能否将Android Studio替换为Koala,然后重试?

© www.soinside.com 2019 - 2024. All rights reserved.