Will see what I can do. So far I am unable to build on MacOS 12.6.4 and Android studio as well. On Windows it works.
Will investigate.
Already done it for the current download version.
You need to use Android Studio 4.3.1 as that has JDK8. Plus a couple of changes to transcc to locate the JDK.
First outline.
First task is to remove any installed files relating to Android.
Open Finder and make changes to show the users home directory and the hard disk. These is located via the preferences under the side-bar icon in the Favourite and Locations section.
Open the home directory in Finder and switch to show hidden files mode. Key combo Command+Shift+Period(.)
Locate and send the following to the recycle bin.
.gradle
.Library/Android
/Applications/Android Studio.app
NOTE: The Library in the users home directory is a hidden folder and contains other program data. Only remove the sub directory named Android as this contains the Sdk.
NOTE: JDK installations are whole directories and will be located in the following locations:
$HOME/.Library/Java/JavaVirtualMachines
/Library/Java/JavaVirtualMachines
They can be left as they are as changes need to be made to transcc for it to pick up where it needs to find the JDK.
Now to install a version of Android that is compatible with Cerberus-X 2021-05-16.
Got to the web site
https://developer.android.com/studio/archive and agree to the usage etc.
Look for Android Studio 4.1.3 and download. Do not forget to check the sha256 check sum in the associated link by opening a terminal, changing directory to where Android Studio has just been downloaded to. Then execute the command:
shasum -a 256 android-studio-ide-201.7199119-mac.dmg
Compare the result against the version in the link. If they are different, then there is something wrong with the file.
If all is okay, then open the dmg file and install Android Studio.
Once Android Studio is installed, open the Android Studio application to begin setup.
If asked for a JDK/Java location, then leave it as it is.
If asked where to place the Android SDK, leave it as it is.
It will then download the required files.
Eventually. It will show the Android Studio Welcome dialog. Here select the "Configure" dropdown and select "SDK Manager".
Here select the required SDK Platforms to download and deselect the ones not needed and then click Apply. Accept any licence and start the installation. Once everything is downloaded. Then Android Studio can be closed.
If not already installed. Install Cerberus X.
Some changes need to be made to transcc, so start Cerberus and open up the transcc.cxs file located in the Cerberus/src/transcc directory.
Make a copy of this file as a back up.
In the method LoadConfig after line 506 add the following.
If JDK_PATH path=JDK_PATH+"/bin:"+path
If JDK_PATH SetEnv "JAVA_HOME",JDK_PATH
Save the file and build transcc as a Release config C++ Tool target.
Now open the config.macos.txt file located in Cerberus/bin and add the following to the end of the file.
JDK_PATH="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
Now it's time to move the main_macos program located in the Cerberus/src/transcc/transcc.buildv2021-05-16 to Cerberus/bin
Rename the transcc_macos already there to transcc_macos_bak and then change the name of the main_macos to transcc_macos.