【发布时间】:2019-03-27 09:56:38
【问题描述】:
我在 Bitbucket CI 服务器上构建失败:
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
我搜索了表明缺少 Google Maven 存储库的类似问题,但我并没有错过它。顶级构建文件:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
还有我的应用级构建文件:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
}
dependencies {
classpath 'io.fabric.tools:gradle:1.26.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
mavenCentral()
}
【问题讨论】:
-
在浏览器中打开 jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/… 会出现 404,它会损坏 jcenter / 库被移动了吗?
-
也可以在这里查看:stackoverflow.com/a/52979557/8034839
标签: android android-studio continuous-integration jcenter