Android SDK not valid

When I switch from Java mode to Android mode a pop-up window appears stating that the Android SDK is not valid. Both automatic and manual loading methods fail.
However the requested API (API 33) is installed as shown in the SDK manager (see below). The processing version is 4.5.2.
Does anyone have an idea?

image

Hi @PLloyd and welcome to the forum!

Could you share the exact wording of the “Android SDK is not valid” popup? A screenshot would be great too.

There’s a similar issue discussed here:

Could you take a look and let us know if your error matches that one? That’ll help figure out whether it’s the same problem or something different.

Also could you tell us what operating system you’re using? Windows, Linux, macOS?

Hi, and thank you for your support.

I work on Windows 10

The pop-up window is this one:

Also, I don’t find the preference.txt file where I should find the andoid SDK path

Thanks for the screenshot.

In Processing 4.5.2, experimental preferences can be edited directly from the Preferences window. No need to manually open preferences.txt.

Open Processing → Settings… → Advanced, and enable Show experimental settings.

Look for ANDROID_SDK, which shows the current Android SDK location. You can edit the path there if needed.

However, under normal circumstances this should not be necessary and Processing should download and locate the correct SDK, so I’m not sure what is happening.

What is the value of ANDROID_SDK for your system?

1 Like