You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user/languages/android.md
+48-2Lines changed: 48 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ Android builds are not available on the macOS environment.
16
16
17
17
### Overview
18
18
19
+
> Android builds are officially supported only on our Trusty Build environment at this time hence you'll need to explicitly specify `dist: trusty` in your .travis.yml file.
20
+
19
21
Travis CI environment provides a large set of build tools for JVM languages with [multiple JDKs, Ant, Gradle, Maven](/user/languages/java/#overview), [sbt](/user/languages/scala#projects-using-sbt) and [Leiningen](/user/languages/clojure).
20
22
21
23
By setting
@@ -28,8 +30,6 @@ dist: trusty
28
30
29
31
in your `.travis.yml` file, your project will be built in the Android environment which provides [Android SDK Tools](http://developer.android.com/tools/sdk/tools-notes.html) 25.2.3.
30
32
31
-
> Android builds are only supported on our Trusty image at this time hence you'll need to explicitly specify `dist: trusty` in your .travis.yml file.
32
-
33
33
Here is an example `.travis.yml` for an Android project:
34
34
35
35
```yaml
@@ -200,6 +200,52 @@ As for any JVM language, it is also possible to [test against multiple JDKs](/us
200
200
201
201
For Android projects, `env` and `jdk` can be given as arrays to construct a build matrix.
202
202
203
+
## Building Android projects on new build environments
204
+
205
+
The `dist: trusty` build environment is the only supported build environment for Android but if you would like to build on newer build environments e.g. `dist: jammy`, you can exercise your access to the Travis CI build environments and install required packages and tools. An example .travis.yml config can be reviewed below:
0 commit comments