@Amit_Roy1
What version of gradle do you use? (6+ version should be fine)

  

      github.com
  

  
    pytorch/pytorch/blob/master/.circleci/docker/build.sh#L174 3



      
      
            DB=yes
            VISION=yes
            ;;
          pytorch-linux-xenial-py3-clang5-android-ndk-r19c)
            ANACONDA_PYTHON_VERSION=3.6
            CLANG_VERSION=5.0
            LLVMDEV=yes
            PROTOBUF=yes
            ANDROID=yes
            ANDROID_NDK_VERSION=r19c
            GRADLE_VERSION=6.8.3
            CMAKE_VERSION=3.7.0
            NINJA_VERSION=1.9.0
            ;;
          pytorch-linux-xenial-py3.6-clang7)
            ANACONDA_PYTHON_VERSION=3.6
            CLANG_VERSION=7
            PROTOBUF=yes
            DB=yes
            VISION=yes
            ;;