Solution 1. Then select Android SDK Command-line tools & CMake then Apply . You should then be able to execute the command below without the elevated privileges and accept the licences. After choosing “yes” for all licenses, the android licenses are accepted.
Read more