rangarajb2005
rangarajb2005

Reputation: 51

TFS Connectivity in Android Studio

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

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

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:

  1. Make sure you have correctly configured the TFVC for Android studio. See TFVC Setup Requirements for TFVC support.
  2. Open Android Studio and select 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
  3. Copy the existing Android prject to the new workspace local directory
  4. Open the copied project in Android Studio: File > Open > navigate to the workspace to open the copied project
  5. Right click on the 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

enter image description here


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

Related Questions