android - CircleCI 在 Android 支持库上构建失败

标签 android android-studio gradle continuous-integration circleci

今天进行实验...本地项目运行良好,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/

相关文章:

java - 如何在另一个线程上运行 RxJava 观察者

java - 将 Eclipse 迁移到缺少 build.gradle 的 Android Studio

android - Android Gradle排除无法正常工作

android - 更新到 Android Studio 2.2/gradle 插件 2.2.0 : "could not get unknown property ' assembleRelease'"后

java - Android ListView - 获取选中的项目

android - 如何在搜索时删除 android searchview 弹出文本?

Android PreferenceActivity 和对话框 fragment

android - 在 Android 中注册 C2DM 时出现问题

Android Studio 和 AndEngine - 包不存在

java - Android:加载库并仅将其用于开发分支而不是发布