Build gradle in jenkins failed to find Build Tools revision 21.1.1

I configured jenkins on AWS with Ubuntu 14+. I installed sdk, jdk, git, and set ANDROID_HOME. However, I am not able to create avd, and I’m also not able to build with the gradle file:

clean -b app/build.gradle

Installing sdk:

  • Eclipse Git gitignore file is ignored
  • Android Studio: Can't start Git
  • How to set android app version by number of build in Jenkins?
  • connectedAndroidTest on multiple emulators
  • Git Versioning and Library Projects
  • Eclipse: How to ignore .git subdir when adding one project to another project's build path?
  • cd /var/lib/jenkins/tools
    wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
    tar xvfz android-sdk_r23.0.2-linux.tgz
    mv android-sdk-linux android-sdk
    

    Checking installation of the SDK:

    /var/lib/jenkins/tools/android-sdk/tools/android list sdk -a
    

    Installing selected SDK:

    /var/lib/jenkins/tools/android-sdk/tools/android update sdk --no-ui --all --filter build-tools-21.1.1
    

    The error I get:

    What went wrong:
    A problem occurred configuring project ':app'.
    failed to find Build Tools revision 21.1.1
    

  • Run Grunt Build before OpenShift Build
  • Android Studio Project says project is already on GitHub despite the fact I deleted repository.
  • Use e-mail address from Git commit to send Jenkins notifications
  • How to open the project from GitHub in Android studio? Troubles with Maven and android support libraries.
  • Can't import the volley library in eclipse
  • Should I use Jenkins CI server for deploying WAR file to Tomcat?
  • One Solution collect form web for “Build gradle in jenkins failed to find Build Tools revision 21.1.1”

    this Error

    Error show in this picture

    installing sdk

    cd /var/lib/jenkins/tools
    wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
    tar xvfz android-sdk_r23.0.2-linux.tgz
    mv android-sdk-linux android-sdk

    gradle build

    clean -b Sports/build.gradle

    update sdk

    /var/lib/jenkins/tools/android-sdk/tools/android update sdk -u -t tool,platform-tool -a

    check sdk installed

    /var/lib/jenkins/tools/android-sdk/tools/android list sdk -a

    install sdk

    /var/lib/jenkins/tools/android-sdk/tools/android update sdk –no-ui –all –filter build-tools-21.1.1

    Git Baby is a git and github fan, let's start git clone.