I'm facing the same issue with the latest Android Studio version on macOS (Version Chipmunk|2021.2.1)
. So I'm not using Intellij (Android studio) for the cloning project.I do it by the following command -
git clone https://YOUR_GIT_DEVELOPER_KEY_FROM_CONSOLE@YOUR_GIT_URL
Suppose this is your repo, so it will be like that
git clone https://3didfe32434jndYnjs@github.com/Gkemon/Android-XML-to-PDF-Generator.git