【发布时间】:2022-01-17 16:46:34
【问题描述】:
这是我的根 build.gradle 文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenLocal()
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
当我尝试运行 ./gradlew :app:compileDebugKotlin 时,我得到了这个:
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.neborosoft.AndroidJniBridgeGenerator:annotations:1.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/neborosoft/AndroidJniBridgeGenerator/annotations/1.0/annotations-1.0.pom
- https://repo.maven.apache.org/maven2/com/neborosoft/AndroidJniBridgeGenerator/annotations/1.0/annotations-1.0.pom
- https://jcenter.bintray.com/com/neborosoft/AndroidJniBridgeGenerator/annotations/1.0/annotations-1.0.pom
Required by:
project :app > project :Logic
如您所见,它不会尝试在本地 Maven 存储库中进行搜索。你知道怎么解决吗?
【问题讨论】: