Andriod, Error Computing Cache KEY No such directory found


I have spent hours trying to figure this issue out and can not for the life of me understand how to fix the issue.

Starting: My github root directory holds the .circleCI folder; however the andriod application is heald within a sub folder BookerX. BookerX sub-folder is where the gradle files are. I set the working directory to ~/seg2105-project-team-f19-24/BookerX, however when I do this I get the following error:

error computing cache key: template: cacheKey:1:8: executing “cacheKey” at <checksum “build.gradle”>: error calling checksum: open /home/circleci/seg2105-project-team-f19-24/BookerX/build.gradle: no such file or directory

  • this error is in the Restoring Cache header.

I also get the following error Under cmod premissions:

#!/bin/bash -eo pipefail
sudo chmod +./gradlew
chmod: missing operand after ‘+./gradlew’
Try ‘chmod --help’ for more information.

Exited with code exit status 1

I tried the steps outlined in ./gradlew: No such file or directory but they did not help.

Does anyone know how to fix these issues?


version: 2
working_directory: ~/seg2105-project-team-f19-24/BookerX
- image: circleci/android:api-25-alpha
JVM_OPTS: -Xmx3200m
- checkout
- restore_cache:
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }}
- run:
name: Chmod permissions
command: sudo chmod +./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
- ~/.gradle
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }}
- run:
name: Run UnitTest
command: ./gradlew test
- store_artifacts:
path: app/build/outputs/apk/debug/
destination: apks/
- store_test_results:
path: app/build/test-results

Any updates on this?