设置TeamCity的构建Android Studio项目 [英] Setting up TeamCity to build Android Studio project

查看:2109
本文介绍了设置TeamCity的构建Android Studio项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能为我的生活找到如何设置TeamCity的构建Android Studio项目在互联网上的任何引用。

I cannot for the life of me find any reference on the internet for how to setup TeamCity to build Android Studio projects.

我发现链接的IntelliJ IDEA及TeamCity的,为的Gradle及TeamCity的,但在建设TeamCity的一个Android Studio项目没什么特别。

I've found links to IntelliJ Idea and TeamCity, to Gradle and TeamCity, but nothing specifically on building an Android Studio project in TeamCity.

任何人都可以点我在正确的方向?

Can anyone point me in the right direction?

推荐答案

由于Yole的方向,我现在已经设置起来。

Thanks to Yole's direction, I've set this up now.

的步骤。如果有人有兴趣是如下:

The steps if anyone is interested are below:


  1. 生成代理服务器上安装摇篮。我从 http://gradle.org/downloads 的gradle这个-2.3.bin并复制到C:\\ gradle这个-2.3

  2. 设置环境变量GRADLE_HOME = C:\\ gradle这个-2.3

  3. 生成代理服务器上安装Android工作室。这也应该安装Android SDK

  4. 设置环境变量ANDROID_HOME = C:\\用户\\%当前用户%\\应用程序数据\\本地\\的Andr​​oid \\ SDK

  5. 重新启动的TeamCity代理服务器

  6. 设置您的构建配置的摇篮亚军,创下摇篮任务,以干净的构建,并设置摇篮主页路径。设置工作目录到项目目录为你的Andr​​oid项目

  1. Install Gradle on the build agent server. I took the gradle-2.3.bin from http://gradle.org/downloads and copied to C:\gradle-2.3
  2. Set the environment variable GRADLE_HOME = C:\gradle-2.3
  3. Install Android Studio on the build agent server. This should also install the Android SDK
  4. Set the environment variable ANDROID_HOME = C:\Users\%Current User%\AppData\Local\Android\sdk
  5. Restart the TeamCity agent server
  6. Setup your build configuration with the Gradle runner, setting Gradle tasks to 'clean build' and setting the Gradle Home path. Set working directory to the project directory for your Android project

运行生成!

这篇关于设置TeamCity的构建Android Studio项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆