我于2024年4月1日下载了新的Android Studio版本并同步了gradle文件后,在构建过程中收到了以下错误日志:
Plugin [id: 'com.android.application', version: '8.2.1', apply: false] was not found in any of the following sources:
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '8.2.1', apply: false] was not found in any of the following sources:
字符串
这是我的build.gradle文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.2.1' apply false
id 'com.android.library' version '8.2.1' apply false
}
型
我找不到任何关于故障排除和编译应用程序的帮助。
1条答案
按热度按时间xurqigkl1#
这是一个相当奇怪的情况:
8.2.1
版本8.2.1
版本,只有8.2.0
版本因此,当前(2024-01-05)的解决方案是将AGP降级为
8.2.0
,直到下一个版本正式可用