macOS change java to 11

The way I’ve done it is to use the pre-installed Brew version of Java 13, and JEnv to shim it:

jenv add /usr/local/opt/openjdk/
jenv global 13

For Android I’m following similar instructions that’s in the Bitrise docs:

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt -y install openjdk-13-jdk

This works for iOS, but I have not tested with Android yet as I’m not the owner of any Android projects on my company’s Bitrise.

I’ve published the above as two steps on Github. Details on how to use them are in this blog post:

3 Likes