24: only buildscript {}, pluginManagement {} and other plugins {} script blocks are allowed before plugins {} blocks, no other statements are allowed
plugins {
id 'com.android.application' version '7.4.1' apply false
id 'com.android.library' version '7.4.1' apply false
}
apply from: 'config.gradle'
buildscript {
ext.objectboxVersion = "2.9.1" // objectbox版本
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://repo.eclipse.org/content/repositories/paho-releases/"}
maven { url 'https://artifact.bytedance.com/repository/Volcengine/' }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath("io.objectbox:objectbox-gradle-plugin:$objectboxVersion")
}
}
删除plugins {
} 之间的内容即可!
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。