to follow up on what bogey jammer wrote, i got sdk 35 working by setting gradle.properties to
android.aapt2FromMavenOverride=/data/data/com.termux/files/home/bin/aapt2
after following these steps (with an extra copy of both files to the dir above) https://www.reddit.com/r/termux/comments/1g83cyg/how_i_ran_unmodified_apktool_in_arm64_termux/