


I chose the first one and I provided the path of my SDK manually. The first time it tells me it cannot find the Android SDK and it gives me two options: Locate SDK Path Manually or Download SDK Automatically. After AM is installed, I switched from java to Android Mode in the PDE. Then I ran Processing, I installed the AM as described above. Then I started Android Studio, I go to its SDK manager and I make sure I have Android API 26 (I didn't check this step, but I think I also have 21, 22 and 24). I made a note of the sdk folder selected in the installation. I installed the Android SDK by installing Android Studio and selecting to install the Android SDK as well. I have a Win 10 machine and P3.3.6 and AM4.0.1. Just to add, I run the emulator in Processing just now and it worked.

I want to document it here and keep in mind these notes are from memory. This is how I installed the AM in Processing. Ok, thank you for answering the questions. I didn't run a sketch on an actual device.Ĭ:\Utenti\HP\Documents\Processing\android\sdkĬ:\Users\HP\Documents\Processing\android\sdk\extrasĬ:\Users\HP\Documents\Processing\android\sdk\extras\android\m2repositoryĬ:\Users\HP\Documents\Processing\android\sdk\extras\google\m2repository I removed and re-installed Android Mode: nothing changed. Now, even if I download a more recent release of Processing, Android Mode 4.0.1 is available when I launch Processing for the first time. However, if that SDK is also used by another development tool, such as Android Studio, it may get updated outside Processing, which may lead to incompatibilities with the mode._**

Because the SDK is very large (up to several GBs), it can be a good idea to use the one that is already installed to save disk space. If a valid SDK is detected on the computer, Processing will ask if we want to use it or download a new one (Figure 1-5). Select the entry for Android mode in the Modes tab, then click the Install button.Īfter installation is complete, close the CM and switch to Android mode using the same drop-down menu from Figure 1-4. Opening the Contribution Manager to add a new mode _**Open the CM by clicking the “Add Mode…” option that appears in the drop-down menu in the upper-right corner of the PDE (Figure 1-4).įigure 1-4.
