how to add solution to TFVC on android Studio directly? - android

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

Related

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

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.

Android Studio: Show android source and javadoc [duplicate]

I'm trying to attach the android source code to my gradle project using Android Studio. The problem is that the SDK tab does not appear if you are using a gradle project and I can not attach the source code. I tried with version 0.4.3 and does not work.
Any idea or work arround?
EDIT: I've attach a capture with my project structure without sdk option.
Thank you,
The short explanation is that Android Studio has added some functionality to try to automatically manage IntelliJ SDKs; if you give it a JDK path and Android SDK path in Project Structure > Android SDK, it will automatically create a Java SDK and Android SDKs for each API level you have installed in your Android SDK. The problem is, if it creates an Android SDK for an API level that doesn't have the sources downloaded, if you go into SDK Manager later and download the source, it doesn't pick that up and update its SDK. I've filed https://code.google.com/p/android/issues/detail?id=65230 for this. In that bug I list two workarounds, which I'll explain here:
You can actually get at the SDKs panel you're looking for. We hide it if you have a Gradle-based project open since we want Gradle-based project users to not have to worry about it, but since we also support IntelliJ-style projects that use its internal builder, it's still possible to access it so those users will be able to make their projects work. You can get at this panel if you access Project Structure without a project open. To do so:
Close all open projects
From the Welcome to Android Studio screen, go to Configure > Project Defaults > Project Structure > SDKs
Choose the appropriate Android API SDK that you installed source for, and go to Sourcepath panel
Press the + button, and choose the source directory.
If you're having trouble following that, let me know and I can post screenshots.
Another approach would be to blow away all of Android Studio's auto-created SDKs and let it rebuild them. To do that
Exit Android Studio
Delete the jdk.table.xml file, which on MacOS will be in your home directory under Library/Preferences/AndroidStudioPreview
Relaunch Android Studio
Go into Project Structure (either from the Welcome screen or from a project), and choose the Android SDK tab
Make sure the Android SDK location and JDK location are correct.
Check the compileSdkVersion in your build.gradle file and download the "Source for Android SDK" for respective API from Android SDK Manager.
SDK manager icon will be available on Android Studio tool bar.
Nothing else needs to be done.
Note : Source Code for Android SDK is only available for and after API 13 .

android studio 0.4.2 + gradle + Android Source code

I'm trying to attach the android source code to my gradle project using Android Studio. The problem is that the SDK tab does not appear if you are using a gradle project and I can not attach the source code. I tried with version 0.4.3 and does not work.
Any idea or work arround?
EDIT: I've attach a capture with my project structure without sdk option.
Thank you,
The short explanation is that Android Studio has added some functionality to try to automatically manage IntelliJ SDKs; if you give it a JDK path and Android SDK path in Project Structure > Android SDK, it will automatically create a Java SDK and Android SDKs for each API level you have installed in your Android SDK. The problem is, if it creates an Android SDK for an API level that doesn't have the sources downloaded, if you go into SDK Manager later and download the source, it doesn't pick that up and update its SDK. I've filed https://code.google.com/p/android/issues/detail?id=65230 for this. In that bug I list two workarounds, which I'll explain here:
You can actually get at the SDKs panel you're looking for. We hide it if you have a Gradle-based project open since we want Gradle-based project users to not have to worry about it, but since we also support IntelliJ-style projects that use its internal builder, it's still possible to access it so those users will be able to make their projects work. You can get at this panel if you access Project Structure without a project open. To do so:
Close all open projects
From the Welcome to Android Studio screen, go to Configure > Project Defaults > Project Structure > SDKs
Choose the appropriate Android API SDK that you installed source for, and go to Sourcepath panel
Press the + button, and choose the source directory.
If you're having trouble following that, let me know and I can post screenshots.
Another approach would be to blow away all of Android Studio's auto-created SDKs and let it rebuild them. To do that
Exit Android Studio
Delete the jdk.table.xml file, which on MacOS will be in your home directory under Library/Preferences/AndroidStudioPreview
Relaunch Android Studio
Go into Project Structure (either from the Welcome screen or from a project), and choose the Android SDK tab
Make sure the Android SDK location and JDK location are correct.
Check the compileSdkVersion in your build.gradle file and download the "Source for Android SDK" for respective API from Android SDK Manager.
SDK manager icon will be available on Android Studio tool bar.
Nothing else needs to be done.
Note : Source Code for Android SDK is only available for and after API 13 .

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)

Categories

Resources