Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up automatic Google Support Repository update for Android project?

I'm trying to set up automatic Google Support Repository update for my Android project on Jenkins. I found two ways to do that- Jake Wharton's SDK Manager Plugin, or Android Emulator Plugin for Jenkins, but both of those solutions seem to be deprecated. The docs for SDK Manager Plugin point out that:

This plugin is deprecated and is no longer being developed. The Android tools team has committed to automatically downloading tools and dependencies in v2.2.0 and will be improving it in subsequent releases.

Where can I find any information on how to do that?

like image 867
KubaK Avatar asked Dec 19 '22 15:12

KubaK


1 Answers

These are the release notes http://tools.android.com/tech-docs/new-build-system.

Basically that means that upgrading to use:

  • classpath 'com.android.tools.build:gradle:2.2.0-alpha4'

will make that gradle downloads automatically the missing dependencies if you add the experimental flag:

  • android.builder.sdkDownload=true to your gradle.properties file.

You can see the announcement here https://www.youtube.com/watch?v=csaXml4xtN8&index=23&list=PLWz5rJ2EKKc8jQTUYvIfqA9lMvSGQWtte 43:35

like image 155
jamesbluecrow Avatar answered Jan 04 '23 02:01

jamesbluecrow