今天进行实验...本地项目运行良好,CircleCI 输出如下。 See my circle.yml here .
> Configuring > 2/2 projectsFAILURE:
> Configuring > 2/2 projectsBuild failed with an exception.
> Configuring > 2/2 projects
> Configuring > 2/2 projects
> Configuring > 2/2 projects* What went wrong:
> Configuring > 2/2 projectsA problem occurred configuring project ':app'.
> Configuring > 2/2 projects>
> Configuring > 2/2 projectsCould not resolve all dependencies for configuration ':app:_debugCompile'.
> Configuring > 2/2 projects
> Configuring > 2/2 projects>
> Configuring > 2/2 projectsCould not find com.android.support:appcompat-v7:23.3.0.
> Configuring > 2/2 projects Searched in the following locations:
> Configuring > 2/2 projects https://jcenter.bintray.com/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.pom
> Configuring > 2/2 projects https://jcenter.bintray.com/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.jar
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.pom
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.jar
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/google/m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.pom
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/google/m2repository/com/android/support/appcompat-v7/23.3.0/appcompat-v7-23.3.0.jar
> Configuring > 2/2 projects Required by:
> Configuring > 2/2 projects Fool-Android:app:unspecified
> Configuring > 2/2 projects
> Configuring > 2/2 projects>
> Configuring > 2/2 projectsCould not find com.android.support:design:23.3.0.
> Configuring > 2/2 projects Searched in the following locations:
> Configuring > 2/2 projects https://jcenter.bintray.com/com/android/support/design/23.3.0/design-23.3.0.pom
> Configuring > 2/2 projects https://jcenter.bintray.com/com/android/support/design/23.3.0/design-23.3.0.jar
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/23.3.0/design-23.3.0.pom
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/23.3.0/design-23.3.0.jar
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/google/m2repository/com/android/support/design/23.3.0/design-23.3.0.pom
> Configuring > 2/2 projects file:/usr/local/android-sdk-linux/extras/google/m2repository/com/android/support/design/23.3.0/design-23.3.0.jar
最佳答案
通过将支持库移动到构建配置文件的末尾来修复...似乎排序是不同的。请参阅修订后的要点。
关于android - CircleCI 在 Android 支持库上构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36816382/