title: CircleCI "Some errors occurred while attempting to infer information about your code"
body: <p>I'm trying to build an Android project using CircleCI, but every time I run a build, the build completes in the Configure Build task and I get this message:</p>
  
  <p><strong>Some errors occurred while attempting to infer information about your code.</strong></p>
  
  <p>Also, when this occurs, CircleCI automatically tries to rebuild the branch, causing a loop, because every new build keeps failing.</p>
  
  <p>Here's my circle.yml file</p>
  
  <pre><code>version: 1
  machine:
    java:
      version: oraclejdk8
    environment:
      # Java options
      JAVA_OPTS: "-Xms512m -Xmx2048m"
      GRADLE_OPTS: "-Dorg.gradle.daemon=false"
  
  dependencies:
    pre:
      # Install the android packages
      - echo y | android update sdk --no-ui --all --filter "build-tools-25.0.3"
  
  test:
    pre:
      override:
      # Generate a debug-apk
      - ./gradlew assembleAppseeOffDebug -PdisablePreDex
  
      # Copy the generated apk files to Circle-CI Artifacts
      - cp -r app/build/outputs/apk/ $CIRCLE_ARTIFACTS
  
      # Copy the test results to Circle-CI Artifacts
      - cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
  </code></pre>