Jenkins Android自动构建配置(SVN)

进入系统管理,插件管理

 

需要安装的插件有:Android Lint Plugin,Gradle Plugin,Subversion Plug-in

打开全局工具配置界面 

设置jdk配置

设置gradle配置

设置maven配置

 

设置完成保存

到这里整个打包环境就搭建完毕了。

进入系统设置

 

创建打包任务

 

 

 

 

 

构建输出报错

* What went wrong: A problem occurred configuring project ':zdb_android'. > You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 25.0.2, Android SDK Platform 25]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

没有安装[Android SDK Build-Tools 25.0.2, Android SDK Platform 25].

查看所有sdk

android list sdk --all

按照序号更新

android update sdk -u --all --filter 15,48

Installing Archives:
Preparing to install archives
Downloading Android SDK Build-tools, revision 25.0.2
Installing Android SDK Build-tools, revision 25.0.2
Installed Android SDK Build-tools, revision 25.0.299%)
Downloading SDK Platform Android 7.1.1, API 25, revision 3
Installing SDK Platform Android 7.1.1, API 25, revision 3
Installed SDK Platform Android 7.1.1, API 25, revision 396%)
Done. 2 packages installed.

转载于:https://my.oschina.net/u/170771/blog/3066452

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值