Android Studio Arctic Fox Solution (Windows 10)
I was authenticated in Android Studio Arctic Fox (Latest Version) using a personal access token, but still, I was getting this error on August 14, 2021:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
I generated a new access token on github.com, removed my GitHub account from Android Studio, and added the account again with the new access token. But still, it was showing the same error.
Reading other solutions on SO, I downloaded the GitHub CLI, and added my GitHub account in the windows command prompt with the access token successfully, and tried to push the repo from Android Studio again, which again failed.
Then following this article, I did the following in command line:
cd <project-directory>
git remote set-url origin https://<TOKEN>@github.com/<user_name>/<repo_name>.git
Pushed again from Android Studio. It worked finally!