# How to make CircleCI use a specific Gradle version?

**URL:** <https://discuss.circleci.com/t/how-to-make-circleci-use-a-specific-gradle-version/12794>\
**Category:** Mobile\
**Tags:** gradle, android\
**Created:** [May 23, 2017, 10:51am UTC](https://discuss.circleci.com/t/how-to-make-circleci-use-a-specific-gradle-version/12794 "2017-05-23T10:51:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericn37](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@ericn37](https://discuss.circleci.com/u/ericn37)\
**Post date:** [May 23, 2017, 10:51am UTC](https://discuss.circleci.com/t/how-to-make-circleci-use-a-specific-gradle-version/12794/1 "2017-05-23T10:51:09Z")

</div>

It’s still using 2.14.1 while I wanted 3.3 in my case:  
despite the following circle.yml:

```
machine:
  environment:
    PATH: "~/$CIRCLE_PROJECT_REPONAME/gradle-3.3/bin:$PATH"
    TERM: "dumb"
    ADB_INSTALL_TIMEOUT: "10"
    GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
  java:
    version: oraclejdk8

dependencies:
  pre:
    # Install Android stuffs
    - wget "https://services.gradle.org/distributions/gradle-3.3-bin.zip"; unzip gradle-3.3-bin.zip
    - echo y | android update sdk --no-ui --all --filter tool
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository
    - echo y | android update sdk --no-ui --all --filter extra-android-support
    - echo y | android update sdk --no-ui --all --filter extra-google-google_play_services
    - echo y | android update sdk --no-ui --all --filter extra-google-m2repository
    - echo y | android update sdk --no-ui --all --filter android-25
    - echo y | android update sdk --no-ui --all --filter build-tools-25.0.2
test:
  override:
    # start the emulator
    - emulator -avd circleci-android19 -no-audio -no-window:
        background: true
        parallel: true
    # wait for it to have booted
    - circle-android wait-for-boot
    # unlock the emulator screen
    - sleep 30
    - adb shell input keyevent 82

```

Wrong version is likely the version why `gradle dependencies` is failing for me here:

 ![](https://global.discourse-cdn.com/circleci/original/3X/c/9/c9984d5f667d524712208e69452ebf6fedbe81fc.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/how-to-make-circleci-use-a-specific-gradle-version/12794/2 "2018-06-18T11:33:39Z")

</div>


