you should be installing the sdk and ndk from within android studio using the sdk manager
I dev for quest
for that I specifically have to use android studio 4, jre 8, jdk 8, ndk 21b-e, sdk29/30
and dotnet 3.51
I am not on a mac.
but
for me
for the quest
newer android studios don’t work
if you have the sdk/ndk installed and jdk
you can put the paths in project prefs android
by hand