Android SDK location vs Build Server, how to set it?

前端 未结 2 784
执笔经年
执笔经年 2021-01-15 21:14

I want to create a build server for my Android Application. I am working with TeamCity. My problem is:

  1. Build server which is a PC (Windows) doesn\'t see Androi
相关标签:
2条回答
  • 2021-01-15 21:50

    Thanks for interesting link. It is a great project but in my situation it doesn't give me what I really need. I managed to configure my TaxiCity project by doing:

    1. Every worker has it's own local.properties on PC that are not pushed to repo with commits.
    2. TeamCity builds project from repo but there is no local.properties - because of that he will look for ANDROID_HOME or give error if won't find it.
    3. Because setting ANDROID_HOME environment variable on PC which is a server doesn't work, I found a workaround which is: setting ANDROID_HOME variable inside TeamCity server file - buildAgent.properties
    4. TeamCity can't find local.properties (because it's not on repo), gets SDK location installed on server from ANDROID_HOME variable located in buildAgent.properties file
    0 讨论(0)
  • 2021-01-15 21:55

    I hope that this will help solve the problem: https://github.com/JakeWharton/sdk-manager-plugin

    0 讨论(0)
提交回复
热议问题