Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Please generate new Identifier" error when pushing to cloud services using Android studio

I successfully import the project to google cloud. I am running android studio on a Mac. But, when i try to push the project to the cloud repository i get the error:

fatal: remote error: Invalid authentication credentials. Please generate a new identifier:
https://source.developers.google.com/auth/start?scopes=https://www.googleapis.com/auth/cloud-platform

I am lost here, Android studio, git and google cloud are all new to me.

The help link provided on the error don't mention where i should get the new credentials. Running the machine command i get the error:

machine: no arguments accepted

like image 594
MiguelSlv Avatar asked Jan 05 '17 09:01

MiguelSlv


3 Answers

I have faced same problem but finally solved the issue after executing the following commands. Such type of issue can arise when you mistakenly enter invalid credential at first time. So it caches the credential entered at first time.

git config --global --unset credential.helper
git config --system --unset credential.helper
git config --global credential.helper manager
like image 57
Swapnil Birajdar Avatar answered Nov 15 '22 23:11

Swapnil Birajdar


The first time you try to clone a repo if you put in the wrong credentials they will be cached and you will continue to get "Invalid authentication credentials" error until fixed. Git Credential Manager is used behind the scenes to cache credentials for sites but it is not obvious on how to edit those credentials. Here is how to fix the cached credentials on Windows:

  1. Follow the link to get you a password to authenticate with so you do not have to use your google account password.
  2. Navigate to Control Panel -> User Accounts -> Credential Managerenter image description here

  3. Click on Windows Credentials and find an entry for git:https://source.developers.google.com enter image description here

  4. Click on edit and use your google account email for user name and the git password you copied in step 1 for the password and save.

You should now be able to clone your repository and git will use the stored credentials to authenticate.

like image 34
dwp4ge Avatar answered Nov 15 '22 22:11

dwp4ge


For osx on Mac...this drove me bananas! I went to Keychain > All items > deleted the entry under "GitHub - source.developers.google.com/[your repo address]" and then tried again.

You have to have gone through this process first to ensure you have the Manual Credentials set up, but I'm sure you knew this already.

like image 45
Dan Leighton Avatar answered Nov 15 '22 21:11

Dan Leighton