Reputation: 51
How can I connect a project in Android Studio 3.0 with TFS(Team Foundation Server) 2017? I tried this link,but I can't successfully connect to TFS 2017. I need to connect with Team foundation Server and not with the Team Service.How can I check in my Android studio project into TFS (For the first time)?
Upvotes: 1
Views: 2951
Reputation: 30372
I can reproduce the issue, the problem is you are trying to add an existing project which is not located in the workspace to source control.
Please following below steps to add a new (existing) project into TFS:
VCS
> Check out from Version Control
> Team Services TFVC
> Switch to Team Foundataion Server
tab > Add TFS server URL
> Connect
... > Select the team project which you want to use > Specify local directory and Create Workspace
File > Open > navigate to the workspace to open the copied project
Root project
> TFVC
> Checkin Directory
or VCS
> Commit changes
.Another way is creating a new project when the project checed out, the system will popup a dialog to ask if you want to create a new project, just click YES
. Thus, the new project will be added to source control automaticaly.
You can also reference this similar thread: Add existing Android Studio project to VSTS
UPDATE: Catpured the steps to add existhing project to scoure control:
As the image is too large to upload (over 2 MiB), I posted in OneDrive, access it via this link : https://onedrive.live.com/?authkey=%21AAfH5DQow7FJgPg&cid=01C8C96A530FEA6E&id=1C8C96A530FEA6E%212296&parId=1C8C96A530FEA6E%211833&o=OneUp
Upvotes: 2