If you haven’t installed the Termux API, then be sure to do it. If you’ve downloaded Termux from F-Droid, then install the API from F-Droid only. If you want to download the API through the terminal then check this blog.
Once you’ve updated and upgra...