Please, help to check my Android config.yml

/bin/bash: gradle: command not found
I couldn’t find a reason…please. help to check below config file.

version: 2

jobs:

build:

working_directory: ~/repo

docker:

    - image: circleci/android:api-25-alpha

environment:

  # Customize the JVM maximum heap limit

  JVM_OPTS: -Xmx3200m

  TERM: dumb



steps:

- checkout

# Dependencies

#   This would typically go in either a build or a build-and-test job when using workflows

# Restore the dependency cache

- restore_cache:

    keys:

        - v1-dependencies-{{ checksum "build.gradle" }}

        # fallback to using the latest cache if no exact match is found

        - v1-dependencies-

- run: gradle dependencies

# Save dependency cache

- save_cache:

    paths: 

      - ~/.gradle

    key: v1-dependencies-{{ checksum "build.gradle" }}

# run tests!

- run: gradle test

Hi there!

I believe your script is looking for a global gradle installation on the system which might not be in the image by default.

Usually in Android projects the Gradle wrapper is used instead, so you’d invoke it using ./gradlew instead. So like ./gradlew test for example.

Could you give this a go?