Build file 'D:\Work\AR\android_aar_projects\HyImportTest\build.gradle' line: 16 Could not compile build file 'D:\Work\AR\android_aar_projects\HyImportTest\build.gradle'. > startup failed: build file 'D:\Work\AR\android_aar_projects\HyImportTest\build.gradle': 16: all buildscript {} blocks must appear before any plugins {} blocks in the script
时间: 2023-07-06 09:26:28 浏览: 206
android-gif-drawable-master.zip_android_android gif_site:www.pud
这个错误是因为在 build.gradle 文件的第 16 行位置,插件声明(plugins {})出现在了构建脚本声明(buildscript {})之后。正确的顺序应该是先声明 buildscript{},再声明 plugins{}。请将 build.gradle 文件中的代码按正确的顺序排列,如下所示:
```
buildscript {
repositories {
// ...
}
dependencies {
// ...
}
}
plugins {
// ...
}
// ...
```
阅读全文