To better debug and give a reproducible environment I’ve made this Dockerfile. It goes through the steps that worked with 1.6-1.9. But doesn’t work for 1.10
FROM ubuntu:20.04

# Install the required libraries
RUN apt-get update && DEBIAN_FRONTEND=noninteractiv apt-get install -y  \
    python3-dev \
    python3-pip \
    python-is-python3 \
    cmake  \
    git  \
    sudo  \
    tzdata  \
    android-sdk \
    curl \
    unzip \
    && apt-get clean

# Download Android NDK 21
RUN curl https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip --output android-ndk-r21e-linux-x86_64.zip
RUN unzip android-ndk-r21e-linux-x86_64.zip
CMD export ANDROID_NDK="~/android-ndk-r21e/"

# Clone PyTorch Repo and all required submodules
RUN git clone --recursive -b v1.10.0 https://github.com/pytorch/pytorch.git
WORKDIR ./pytorch

# Install PyTorch requirements
RUN echo "precedence ::ffff:0:0/96  100" >> "/etc/gai.conf"
RUN pip install -r requirements.txt

# Set Android NDK Path and Build the Binaries
CMD export ANDROID_NDK="/android-ndk-r21e/" && BUILD_PYTORCH_MOBILE=1 ANDROID_ABI=arm64-v8a ./scripts/build_android.sh -DBUILD_BINARY=ON

As you can see from running it, it gives
/pytorch/aten/src/ATen/Tensor.h:3:10: fatal error: 'ATen/core/TensorBody.h' file not found

as the error.