How to Use TFS in Android Studio

后端 未结 2 774
太阳男子
太阳男子 2020-12-20 07:05

I want to use TFS in Android Studio. I installed Visual Studio Team Services and then in TFVC of Settings, i should to select TF executable file, i downloaded TFE of below l

2条回答
  •  没有蜡笔的小新
    2020-12-20 07:44

    I had to do a couple of things to make this work.

    I was following this video and it selects 'tf' as executable. I'm using Windows so I had to select tf.cmd as executable. Getting Started with TFVC inside of Android Studio with the Team Services Plugin

    Also I had _JAVA_OPTIONS set in environment variables so when Android Studio was testing tf executable, the first response was:

    Picked up _JAVA_OPTIONS: -Xms512m -Xmx2048m

    After I removed _JAVA_OPTIONS from environment variables tf executable was accepted.

    Going through debuglog Android Studios debuglog was pretty useful to understand the issue: How do I collect logs to help troubleshoot an issue?

    Also I ended up modifying tf.cmd according to this. Seems to work so I'm going to let it be. https://github.com/Microsoft/vso-intellij/issues/45

    This was due to the heap memory. By default there in the tf.cmd you are starting the tool by requesting a heap of 2048MB. This is too much for certain machine (as in my case). I changed the -Xmx param to 512 and now is all working fine.

提交回复
热议问题