Unable to access shared private repository from android studio #166332
-
Select Topic AreaQuestion GitHub Feature AreaIssues BodyUnable to clone android shared project |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
If you're unable to access a private shared repository in Android Studio, try these steps:
Verify by visiting the repo URL in a browser while logged into your GitHub account.
Go to File → New → Project from Version Control → Git. Paste the HTTPS URL of the repo (e.g., https://github.com/username/repo.git). When prompted, log in with: Your GitHub username and a Personal Access Token (PAT) (required since GitHub deprecated password auth). Create a PAT with repo permissions.
sh
Update Git in Android Studio: File → Settings → Version Control → Git → Ensure path is correct (e.g., /usr/bin/git). Still Stuck? |
Beta Was this translation helpful? Give feedback.
-
Getting this error
|
Beta Was this translation helpful? Give feedback.



If you're unable to access a private shared repository in Android Studio, try these steps:
Ensure the repo owner has granted you proper access (Collaborator or Organization member).
Verify by visiting the repo URL in a browser while logged into your GitHub account.
HTTPS (Recommended for Most Users)
In Android Studio:
Go to File → New → Project from Version Control → Git.
Paste the HTTPS URL of the repo (e.g., https://github.com/username/repo.git).
When prompted, log in with:
Your GitHub username and a Personal Access Token (PAT) (required since GitHub deprecated password auth).
Create a PAT with repo permissions.