Could not determine the dependencies of task ‘:app:kaptDebugKotlin’.
Could not resolve all files for configuration ‘:app:kotlinKaptWorkerDependencies’.
Could not find org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.10.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.5.10/kotlin-annotation-processing-gradle-1.5.10.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in ‘Maven POM’ format, you need to adjust the ‘metadataSources { … }’ of the repository declaration.
Required by:
project :app
解决:添加中央 Maven 存储库
repositories { mavenCentral() } ** 另外如果版本在7.0+ ** Groovy DSL repositories { maven { url “http://oss.sonatype.org/content/repositories/snapshots” allowInsecureProtocol = true } // other repositories … } Kotlin DSL repositories { maven { url = uri(“http://oss.sonatype.org/content/repositories/snapshots”) isAllowInsecureProtocol = true } // other repositories … }
好文阅读
发表评论