TFS Connectivity in Android Studio - android

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)?

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:
Make sure you have correctly configured the TFVC for Android studio.
See TFVC Setup Requirements for TFVC support.
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
Copy the existing Android prject to the new workspace local
directory
Open the copied project in Android Studioļ¼š File > Open > navigate to the workspace to open the copied project
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
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

Related

how to add solution to TFVC on android Studio directly?

I created a project on android studio and install and configured a TFS.
I don't want to add my project to TFS and then on my android studio open it as new from source control.
on my cause android studio and TFS both have been configured and everything is ok but I don't know is it possible to add my project to TFS in Android Studio or not? because when I right click on my solution and select TFVC as you can see on my photo "Add" option is disable.
According to your description, you want to add local code/project/solution in android studio to TFS as TFVC version control.
In the version control bar, there should be a local changes option, select the folder and files, right click and choose commit changes, finally check in the changes. Then your local project should be sync synchronized to TFS server side.
Precondition: you have the correct workspace mapping for local Andriod folder. Besides to use TFVC as your version control, you have to use the TEE CLC to provide the TFVC support.
For a Video tutorial, you could refer this link Getting Started with TFVC inside of Android Studio with the Team Services Plugin Suggest you to refer from (10:00~ 12:00) which talk about related things.
You could also take a look at my reply in How to Use TFS in Android Studio

Integrate Visual Studio online Git Repository to Android Studio 1.0.2

I am using Visual Studio online for my development process. And I want to integrate my Android Studio 1.0.2 codes in it. However, as I know Android Studio has no TFS Plugin. That's why, I want to use Git for source control.
How can I integrate Visual Studio Online Git repository to Android Studio 1.0.2. What are the steps that should I follow?
First you need to create a Team Project in Visual Studio Online that is configured to use Git as it's Source Control Repository:
So, log on to you VSO account (or create one if you don't have one yet):
Create a new project from the dashboard:
In the "New Project Wizard" that comes up, make sure you select the use of Git:
Wait for the project to be created and click Navigate to Project when it's done. In the project's dashboard navigate to the Code tab:
And on the code tab you'll find your fresh Git repository.
You also get a notification that you must enable Basic Credentials so that git can connect (git doesn't support connecting to the Microsoft Account/Windows Live ID directly). If you haven't done so, now would be a good time.
Open your profile to set that up:
And configure Basic Credentials:
Now you're ready to connect to Android Studio and open your Git repo on Visual Studio Online:
Enter the Git repository location that was highlighted on the repository page before:
And your Alternate Credentials as you had defined them.
Android Studio will now ask you whether you want to create a project here. If you choose yes, you're all setup to start on your new project.
If you choose no, you can move an existing project into the repository root you just created and commit and push it.

Intellij (Android Studio) git integration: Where is .git?

I cloned my Android application project from a remote git repository. I'm developing this project in Android Studio. Have been managing version control on command line, and now trying to enable git integration on the IDEA interface. For this I clicked "Integrate Project" in VCS menu. But it seems to have ignored the .git directory and created a new one somewhere else (where?).
How do I "point" Android studio to the .git which is located in the root directory of my project?
You should be able to click Android Studio > Preferences
Under the Version Control tab there are many settings, including the add button.
You should get to this screen, where you can add your .git file.

Need to use Team Foundation client in Android Studio probable alternatives/workarounds?

I have a scenario wherein. I need to use android studio as IDE and Team foundation Server as source control repository.
The problem is there is no plugin for TFS in android studio.
And there is no standalone client for TFS(Windows)
I tried using Tortoise SVN with SvnBridge to connect to TFS. But it does not work.It seems there is a bug in SVNBridge.
Any suggestions, how to get this working?
Thanks
Answering my own question:
There is no possible way to use TFS with android studio. We have to wait for AS 1.0 release. Then they might migrate all features of Intellij to AS. And then it might have TFS support.Still no confirmation.
There are a few solutions:
If you are using Visual Studio Team Services (visualstudio.com) or TFS 2013 you can use git and any free git client you like.
If you are running on Linux/Mac you can use the Team Explorer Everywhere command line.
If you are using Windows, installing Visual Studio will give you a "tf" command line.
If you are using an Express Edition (or don't have Visual Studio) you will need Team Explorer or even Team Explorer Everywhere.
You can also see if the MSSCCI providers integrate with Android Studio.
I have Android Studio 0.8.9 and attempted to install the TFS Integration plugin via the Plugins dialog available on the Welcome display. After restart of the AS, the TFS Integration plugin is indeed listed but is highlighted in red! Under the Version Control node in the Settings dialog, there is no TFS listed. Therefore appears it is not supported at present.
If you are using Windows you can use the Visual Studio Power Tools:
Windows Shell Extensions This tool provides integration with Windows Explorer and the common file dialogs. With this integration, you can perform many source control operations without having to run Visual Studio or a Team Foundation command-line too
There is a plugin listed in Jetbrains plugins page.
You may try this
You can try this, which I was just able to do successfully for one of my projects:
First make sure you have Git installed on your machine, which you can download from the open source project site. After installing, configure your android studio settings under Version Control - Git to point to the Git.exe file.
Create a Git project on TFS web portal or Visual Studio Online (click the New link and for Version Control, change the default Team Foundation Version Control to Git).
Once you create the project, navigate to the CODE page where you will find a link under "To clone this repository in Git, use the following URL:" (message slightly different in earlier versions, but the ling is still there). This will be the link you will use in Android Studio. If you are using Visual Studio Online, you will need to create a secondary login to your project so Android Studio can login. Click on your name at the top-right of the window and the My Profile link. Select Security (or Credentials in older versions) and then Enable alternate authentication credentials and create a secondary login ID. If you're using a corporate TFS, try to connect as indicated below, but you may need a TFS admin to help with permissions if you don't have access.
Open Android Studio. Under the VCS menu or on the main load page, select Checkout from Version Control and then Git. Enter the link you found in the CODE page of your new visual studio project for the Git Repository URL. The Parent Directory should be your android studio projects folder. Enter the name you want to give the new directory where your project will be or use the default if it is not already used.
Click the Clone button to create the Git directory on your machine. It will ask you to login, where you will enter the new ID and password you created in your visual studio profile (if TFS, try your network login or whatever you use to get into the web portal). You can now start a new project from scratch (once it finishes the clone operation it will ask if you want to create a project; click yes if you do, no if you're going to import an existing project), or copy the existing files/projects into the new directory (you may need to get rid of any existing git folder) and do an Import of the project and commit the changes under the VCS menu. If there are no changes detected, you can try the Add to VCS operation in the VCS Operations Popup under the VCS menu. This will allow you to force commit and then Push to the server. Your files will then be uploaded to the project and viewable in the web portal.
To pull existing projects, do a checkout from version control (git), clone and choose no if asked to create a project. Once the project is cloned, import the project app folder (you may need to sync with gradle).
Microsoft Java ALM Team has released TFVC Support (in preview) for android studio and IntelliJ
The initial functionality available for preview is:
Checkout a TFVC repository from Team Services or Team Foundation Server 2015
View, add, and rollback local changes in your repository
Create, view, and edit your workspace
Checkin and update local files
Merge conflicts from updates
more info :
TFVC Support in Preview for Team Services Plugin for IntelliJ and Android Studio
TFVC Support (Preview)

Connecting to GitLab repositories on Android Studio

I'm trying to connect to a GitLab repository using the I/O preview of Android Studio. Does anyone know how to do this/if it is possible yet?
How to add an Android Studio project to GitLab
This answer shows how to do it using the Android Studio GUI.
1. Create a new project on GitLab
Chose the + button on the menu bar. Add a project name and then click "Create project".
This will give you a new project address. Choose the https version.
It will look something like this:
https://gitlab.com/MyUserName/my-project.git
2. Create a Git repository in Android Studio
In the Android Studio menu go to VCS > Import into Version Control > Create Git Repository...
Select the root directory of your project. (It will be automatically selected if you already have it highlighted in the Project view. Otherwise you will have to browse up to find it.)
3. Add remote
Go to VCS > Git > Remotes.... Then paste in the https address you got from GitLab in step one.
You may need to log in with your GitLab username and password.
4. Add, commit, and push your files
Make sure you have the top level of the project selected. If you are in the Android view you can switch it to the Project view.
Add: Go to VCS > Git > Add.
Commit: After adding, do VCS > Git > Commit Directory. (You will need to write a commit message, something like initial commit.)
Push: Finally, go to VCS > Git > Push.
Finished!
You should be able to view your files in GitLab now.
See also
There is a plugin that would probably streamline the process. Check it out here.
To clone a repo
Open a new project in Android Studio.
Click VCS -> Checkout from version control -> Git
then enter the URL of the repo and your local direcory
To commit
Open the project you want to push in Android Studio.
Click VCS -> Enable version Control -> Git
There does't seem to be a way to add a remote through the GUI. So open Git Bash in the root of the project add do git remote add <remote_name> <remote_url>.
Now when you do VCS -> Commit changes -> Commit & Push you should see your remote and everything should work through the GUI.
See these pages for details:
http://www.jetbrains.com/idea/webhelp/using-git-integration.html
http://youtrack.jetbrains.com/issue/IDEA-87099
Use CodeStream plugin, easy configuration

Categories

Resources