我刚刚更新了我当前的 android 应用程序以使用 java 11、构建工具 32.0.0,这是我使用的 android studio 详细信息Android Studio Bumblebee | 2021.1.1 Beta 5Build #AI-211.7628.21....
我刚刚更新了我当前的 android 应用程序以使用 java 11、构建工具 32.0.0 和
以下是我使用的 Android Studio 详细信息
Android Studio Bumblebee | 2021.1.1 Beta 5
Build #AI-211.7628.21.2111.7956428, built on November 30, 2021
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
现在我看到这个构建警告
Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
解决方案:
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.8.0" apply false
}
到
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '7.4.2' apply false. <--- this row
id "org.jetbrains.kotlin.android" version "1.8.0" apply false
}
Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.