Maybe I’m mixing a few things up. I’ve re-read through your posts i this thread Android build from unity not 64 bit compliant and now I’m not sure what error is still left for you. Could you specify what exact error you still get in Unity editor now?
Oh, the error that you get seems to be caused by the fact that sdkmanager only supports JDK 8, but there is a newer JDK version installed on your machine.
This also raises a question, do you use a custom JDK in Unity, or the one that comes with Unity? Android tools currently used by Unity don’t work with newer JDK versions than 8, so maybe that is also somehow related to your other issues.
There was this post about JDK versions Java 9 (JDK 9) support by Unity Android it was pinned for a long time, but now I see it is not pinned anymore, even though it is still relevant for now.