修改配置参数
This commit is contained in:
@@ -4,6 +4,10 @@ plugins {
|
||||
id("com.google.devtools.ksp")
|
||||
id("com.google.dagger.hilt.android")
|
||||
id("kotlin-parcelize")
|
||||
|
||||
id("com.github.ben-manes.versions") version "0.52.0"
|
||||
id("io.objectbox") // ✅ 使用插件 id(不用带版本号)
|
||||
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -111,4 +115,7 @@ dependencies {
|
||||
|
||||
implementation (libs.pytorch.android)
|
||||
implementation (libs.pytorch.android.torchvision)
|
||||
|
||||
val objectboxVersion = "5.0.1"
|
||||
debugImplementation("io.objectbox:objectbox-android-objectbrowser:$objectboxVersion")
|
||||
}
|
||||
@@ -6,3 +6,15 @@ plugins {
|
||||
id("com.google.dagger.hilt.android") version "2.56.2" apply false
|
||||
alias(libs.plugins.android.library) apply false
|
||||
}
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven("https://objectbox.net/beta-repo/") // ✅ 仍需声明
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:8.10.1")
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0")
|
||||
classpath("io.objectbox:objectbox-gradle-plugin:5.0.1") // ✅ ObjectBox 插件
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,9 @@ pluginManagement {
|
||||
}
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
|
||||
maven("https://objectbox.net/beta-repo/") // ✅ 必加
|
||||
|
||||
}
|
||||
}
|
||||
dependencyResolutionManagement {
|
||||
@@ -22,6 +25,8 @@ dependencyResolutionManagement {
|
||||
}
|
||||
google()
|
||||
mavenCentral()
|
||||
maven("https://objectbox.net/beta-repo/") // ✅ 必加
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user