If you are getting the correct javac version of 15.0.1 Then do not remove the JDK installation.
There is no need to remove or reinstall Cerberus.
Let's start by checking and cleaning some old files.
Open a new terminal and type:
In the output, look for a directory called .gradle and if you see it type:
rm -rf .grade && clear && ls -a
The .gradle directory will be gone.
You will need your password used to install software for the next bit.
If you downloaded the Cerberus from https://whiteskygames.itch.io/cerberus-x
and have problems with running the Cerberus IDE, or if it will not let you save files.
Then if you know how to use the 'Get Info' context menu; you can add yourself to the file permissions via the Finder Application. Use that route to change the permissions of the /Applications/Cerberus directory and add yourself, making sure that you have set the 'apply to enclosed items' found in the little gear wheel in the Sharing and Permissions section.
Or you can use the command line to take ownership of the whole Cerberus directory.
sudo chown -R $USER Cerberus
In any of these cases, you will be asked to enter your password.
If you downloaded and built Cerberus from GitHub in a directory where you already have file permissions, then you should have no issues saving files.
Now to Check and clean old Cerberus build files.
In the Finder Application, navigate to where ever you have tried to build any Cerberus source files.
Remove any directory that contains the extension .buildv2020 to clear out old build files that can cause issues.
Example of a build directory: matchup.buildv2020-12-30
Now steps to take to set up.
Download and install a version of Oracle JDK.
The current JDK version 15 download is at https://www.oracle.com/uk/java/technologies/javase-jdk15-downloads.html
The files will be installed to:
For easy install of the Android SDK:
Download Android Studio: https://developer.android.com/studio
Note: Android studio comes with a copy of JDK 1.8.0 stored as part of the application bundle.
You will be asked during set up if you wish for Android Studio to use that version or click the button at the side of the edit box to locate a previously installed version, meaning that you can select the version via navigating to Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home
You will also be asked where to install the Android SDK. You can choose the default location, or select a different location. You must make a note of where is has been installed for later. I always install it in the user home directory in Library/Android/SDK.
Once you have installed Android Studio, you can begin to install additional Android SDK's.
Start Android Studio and in the greeting dialog at the bottom select the 'configure' drop down, then select SDK Manager.
Here you can install and remove various Android SDK's.
You should select to install two additional SDK's, unless you are targeting a specific release of the Android Operating system.
Install at least API's 28,23,16.
Start Cerberus and using the Projects Tree View, navigate and open the file located at Cerberus/bin/config.macos.txt
In the file opened in the editor, change the config variable to where the Android SDK is located and save.
While in Cerberus, use the Projects Tree View to navigate and open the file located at Cerberus/targets/android/template/config.cxs
In the opened file in the editor, change the line below and save:
Exit Cerberus and restart Cerberus for changes to be updated.
Make sure you have your Android device plugged in to the computer.
Start Cerberus and using the Projects Tree View, navigate and open the file located at Cerberus/examples/mojo2/bouncyaliens/bouncyaliens.cxs
You can then build and install to the Android device. That is provided that you have enabled developer mode on your phone.
Keep an eye on the Android device to accept the connection to the computer.