Andriod, Error Computing Cache KEY No such directory found

Hello,

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?

config.yml:

version: 2
jobs:
build:
working_directory: ~/seg2105-project-team-f19-24/BookerX
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- 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:
paths:
- ~/.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?

Hello, I am having the same problem. Did you manage to resolve yours ?