Plugin [id: ‘com.android.application‘, version: ‘8.1.3‘, apply: false] was not found
·
问题:Plugin [id: 'com.android.application', version: '8.1.3', apply: false] was not found in any of the following sources
解决:删除了 setting.gradle 并在 settings.gradle.kts 文件中添加了 include。
Android Studio 会在项目文件夹中创建一个 setting.gradle 文件,其中包含新模块(仅此而已),而不是将其添加到已经存在的 settings.gradle.kts 文件中。最有可能的是,编译器使用了这个新文件,并忽略了有存储库的settings.gradle.kts,因此发生了错误(他找不到插件,因为没有存储库)。
更多推荐


所有评论(0)