相关疑难解决方法(0)

Android CI版本:无法找到aapt2-proto.jar

我在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
Run Code Online (Sandbox Code Playgroud)

我搜索了类似的问题,表明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" }
    }
}
Run Code Online (Sandbox Code Playgroud)

和我的应用程序级别构建文件:

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: …
Run Code Online (Sandbox Code Playgroud)

continuous-integration android android-studio jcenter

51
推荐指数
2
解决办法
8285
查看次数