Summary
As of this date (07.04.2024) Processing 4.0 cannot find and install required Android SDK and command-line tools. In this tutorial, you can find a workaround to that problem by installing required SDK and command-line tools via Android Studio.
Requirements
- Enable Developer mode on your Android device ➡️ how to
- Download and install Android Studio
- Download and install your device drivers. It depends on the hardware you own. For my case, I use Samsung A54. If you are using Samsung, the Smart Switch software is required to be installed on your device to make it identified by your computer. While installing the Samsung Smart Switch, your Mac will ask you for several permissions. Allow access from your Mac whenever prompted.
- Download and install Processing
Android Studio Setup
- Install your device’s software and drivers, if it is required. Mine is “Samsung Smart Switch”
- Download and Install the latest Android Studio.
- After the installation is done, open the Android Studio and click on
SDK Manager
- Install SDK 33
- Then install
Command Line Tools
. It is required by Processing. - Open the Processing App and choose to install
Android Mode
- Select to set SDK manually option and choose the SDK path on your Mac. It should be as follows;
/Users/<your_username>/Library/Android/sdk
- If you get no error, or warning, then you are good to go.
- Connect your Android device to your computer. Make sure your your device is identified by your computer. Hit the
Run
button and you will see the following image. - Hit Run