I'm utilizing the gitlab auto devops android template Android.gitlab-ci.yml here but it's using a java 8 image (whereas I want to use java 11). Also, it has ANDROID_COMPILE_SDK set to "29" and I want to compile my app with the latest version - currently 31.
How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)
811 Views Asked by Kevin Worth At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in JAVA-8
- Why do we need to avoid mutations while coding? What is a mutation?
- Collecting inner List from outer List using Java 8
- How to get the index and max value of an array in one shot?
- Why did Java 8 introduce *Integer.sum(int a, int b)*
- How to stop a reduce operation mid way based on some condition?
- Create a pointcut based on annotation parameters
- How should I be using LambdaMetaFactory in my use case?
- How to sort an IntStream in reverse order
- ArrayOutOfBoundsException on Bean creation while using Java 8 constructs
- Java 8: stop reduction operation from examining all Stream elements
- In Ubuntu java -version gives Error occurred during initialization of VM
- Builder pattern with a Java 8 Stream
- resin project, jdk8 has a high cpu load ,but jdk7 not
- Center JoptionPaneMessageDialog in parent element of the source element that generated the event
- Implementing swing in jdk 1.8 using eclipse
Related Questions in GITLAB
- I can push but not pull git
- Git first pull and push to master issue
- Can you create a project on GitLab using ssh?
- Adding A Certificate Authority in GitLab?
- GitLab shows deleted branches
- Files deleted with git filter-branch reappear after push and pull back
- Gitlab LDAP (Active Directory) Authentication without Server Side Access
- Cannot upgrade gitlab from 7.9.4
- GIT - Split working space by user (designer vs programmer)
- git diff not working on a bare repo, post-receive hook
- gitlab: Windows: How to use chmod and fix "Get Permission denied (publickey). fatal: Could not read from remote repository"
- git pull returns, fatal: protocol error: bad line length character: No s
- Custom post-receive hook with gitlab
- Installing GitLab CI Runner on Raspberry Pi 2 (Raspbian)
- From development to deployment with Git
Related Questions in JAVA-11
- Java 11 : Error:java: invalid source release: 11 - Not sure what to do anymore
- Convert Json string into Hashmap of hashmap in java
- Comprehensive list of all functional interfaces in JDK outside java.function package
- Java 11 on latest Mac OS seems to lock the file system for minutes at a time
- maven javadoc shows annotation twice
- Should an XML catalog be able to resolve modules?
- Mapping an object using a List<UnaryOperator<...>>
- How to write responses of multiple asynchronous get requests to a single file in asynchronous httpclient java 11?
- Graaljs script engine evaluate on java script string condition
- using maven deployit plugin which relies on jaxb with java 11
- Java 11 installation problem for Ubuntu 16.04
- When transforming XML in XSLT processor, how are entities and modules resolved if they don't exist in XML catalog?
- Immutables Criteria Syntax Error In JDK 11 Module
- Is there a change to return a png file like response.png instead of response.bin
- Start an external command line process in Java 11
Related Questions in GITLAB-AUTODEVOPS
- Wildcard SaaS platform domains, over HTTPS, on Kubernetes
- GitLab Auto DevOps - how to select the runner it runs on?
- Gitlab auto DevOps pipeline with docker
- my pipeline for auto devops in gitlab not working property
- Implement Gitlab AutoDevops with ArgoCD
- GitLab Auto DevOps test job fails with special characters in project CI variables
- How to use custom settings.xml with GitLab-CI Auto DevOps?
- Is there a way to override the default GitLab CI AutoDevOps templates?
- How to set the output of shell script in a variable in yaml?
- Add Helm chart dependencies with GitLab Auto DevOps
- Gitlab Auto DevOps ingress endpoint
- How to restrict read and write access for a particular branch for one project member. He should have access for another branches of same project
- How to add a PersistentVolumeClaim to a deployment running GitLab AutoDevops?
- Set variables/config that apply for all jobs in the CI config
- Gitlab Auto Deploy failing to connect to Docker
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is another "latest" template file named
Android.latest.gitlab-ci.ymlwhich can be found on gitlab here . At time of writing it setsimageto "openjdk:11-jdk" andCOMPILE_SDKto "30". See relevant gitlab MR/discussion for more context.So, if you just want to use whatever is in the template, your
.gitlab-ci.ymljust needs to look like this:That's all you need.
At time of writing that sets
ANDROID_COMPLE_SDKto "30". So, if you want to bump that up and set it yourself, it's as simple as adding it to that file. For instance:Just remember that if/when someone updates the template to say, "32", you'll still be using "31". The choice is yours:
include) and you'll get the update automatically when someone updates the template