Could not find an installed version of Gradle either in Android Studio,

Hi Team , I have added the path of gradle in gitlab-ci.yml file but still it is failing and I am working on Mac machine.

This is my gitlab-ci.yml file

**variables: ANDROID_COMPILE_SDK: "26" ANDROID_BUILD_TOOLS: "27.0.3" ANDROID_SDK_TOOLS: "26.0.2"

before_script:

  • sh createSymlnk.command
  • export ANDROID_HOME="/Users/vishwad/Library/Android/sdk"
  • export GRADLE_HOME="/Users/vishwad/Downloads/gradle-4.6/bin"
  • chmod +x /Users/vishwad/.gradle/
  • export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home"

stages:

  • build

build_android: stage: build tags: - Development only: - AutoDevOps script: - cd EFIGo_Proj - ls - npm I - ionic cordova platform rm android - ionic cordova platform add android@6.4.0 - ionic cordova build --release android artifacts: paths: - platforms/android/build/outputs/apk/ **

(node:1777) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio (node:1777) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.