小编sug*_*ada的帖子

Gradle assembleDebug和preDexDebug因CircleCI而失败

我尝试assembleDebug使用CircleCI,但它必须无法构建(preDex).为什么我不能这样做?

  • 使用ProductFlavor(名称是生产)
  • Android Gradle ver.1.1.0-rc1

问题

./gradlew assembleProductionDebug意外死亡构建92%3%>:app:preDexProductionDebugaction ./gradlew assembleProductionDebug failed

circle.yml

general:
  artifacts:
    - "app/build/outputs/apk/app-production-release-unaligned.apk"
machine:
  java:
    version: openjdk7
  environment:
    ANDROID_HOME: /usr/local/android-sdk-linux

dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter "build-tools-21.1.2"
    - echo y | android update sdk --no-ui --all --filter "platform-tools"
    - echo y | android update sdk --no-ui --all --filter "tools"
    - echo y | android update sdk --no-ui --all --filter "extra-google-google_play_services"
    - echo y | android update sdk --no-ui --all …
Run Code Online (Sandbox Code Playgroud)

android gradle circleci

6
推荐指数
3
解决办法
3088
查看次数

标签 统计

android ×1

circleci ×1

gradle ×1